using Microsoft.VisualBasic;
using Microsoft.VisualBasic.CompilerServices;
using SJSpeech;
using SJVars;
using SJZip;
using Spacejock;
using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Web;
using System.Windows.Forms;
using yW5Lib;
using yWriter6.My;
using yWriter6.My.Resources;

namespace yWriter6
{
	[DesignerGenerated]
	internal class frmEditor : Form
	{
		public delegate void FinishedEventHandler(int ScID);

		public delegate void TriggerTiledWindowsEventHandler();

		public delegate void TriggerUntiledWindowsEventHandler();

		public delegate void EditDifferentSceneEventHandler(int NewScID, int WhichTab, string SearchString);

		public delegate void CreateNewSceneEventHandler(int BelongsToChID, int InsertBeforeScID, int InsertAfterScID);

		public delegate void SettingsChangedEventHandler(int ScID);

		private enum eWindowStyle
		{
			None,
			Maximised,
			MaximisedWithMargins,
			Tiled
		}

		private IContainer components;

		public ToolTip ToolTip1;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSave")]
		private ToolStripMenuItem _mnuSave;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSaveAndExit")]
		private ToolStripMenuItem _mnuSaveAndExit; 

		[CompilerGenerated]
		[AccessedThroughProperty("pbar1")]
		private ToolStripSeparator _pbar1;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuExit")]
		private ToolStripMenuItem _mnuExit;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuFile")]
		private ToolStripMenuItem _mnuFile;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuNewScene")]
		private ToolStripMenuItem _mnuNewScene;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuInsertScene")]
		private ToolStripMenuItem _mnuInsertScene;

		[CompilerGenerated]
		[AccessedThroughProperty("pbar12")]
		private ToolStripSeparator _pbar12;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrintScene")]
		private ToolStripMenuItem _mnuPrintScene;

		[CompilerGenerated]
		[AccessedThroughProperty("scnsplit")]
		private ToolStripSeparator _scnsplit;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSplitScene0")]
		private ToolStripMenuItem _mnuSplitScene0;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSplitScene1")]
		private ToolStripMenuItem _mnuSplitScene1;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSplitScene2")]
		private ToolStripMenuItem _mnuSplitScene2;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSplitSceneCustom")]
		private ToolStripMenuItem _mnuSplitSceneCustom;

		[CompilerGenerated]
		[AccessedThroughProperty("pbarsplit")]
		private ToolStripSeparator _pbarsplit;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuTop20")]
		private ToolStripMenuItem _mnuTop20;

		[CompilerGenerated]
		[AccessedThroughProperty("pbaryb")]
		private ToolStripSeparator _pbaryb;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuyBook")]
		private ToolStripMenuItem _mnuyBook;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuScene")]
		private ToolStripMenuItem _mnuScene;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuBarCopy")]
		private ToolStripMenuItem _mnuBarCopy;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuBarPaste")]
		private ToolStripMenuItem _mnuBarPaste;

		[CompilerGenerated]
		[AccessedThroughProperty("pbarPaste")]
		private ToolStripSeparator _pbarPaste;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuFind")]
		private ToolStripMenuItem _mnuFind;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuFindNext")]
		private ToolStripMenuItem _mnuFindNext;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuFindPrev")]
		private ToolStripMenuItem _mnuFindPrev;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuReplace")]
		private ToolStripMenuItem _mnuReplace;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSettings")]
		private ToolStripMenuItem _mnuSettings;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSelectFont")]
		private ToolStripMenuItem _mnuSelectFont;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuMarkKnownChar")]
		private ToolStripMenuItem _mnuMarkKnownChar;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuEdit")]
		private ToolStripMenuItem _mnuEdit;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuInstallDictionary")]
		private ToolStripMenuItem _mnuInstallDictionary;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuCheckNow")]
		private ToolStripMenuItem _mnuCheckNow;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuClear")]
		private ToolStripMenuItem _mnuClear;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSpellingOn")]
		private ToolStripMenuItem _mnuSpellingOn;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSpellMenu")]
		private ToolStripMenuItem _mnuSpellMenu;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuWritingTips")]
		private ToolStripMenuItem _mnuWritingTips;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuHelp")]
		private ToolStripMenuItem _mnuHelp;

		[CompilerGenerated]
		[AccessedThroughProperty("TimerWC")]
		private System.Windows.Forms.Timer _TimerWC;

		[CompilerGenerated]
		[AccessedThroughProperty("TimerBackup")]
		private System.Windows.Forms.Timer _TimerBackup;

		[CompilerGenerated]
		[AccessedThroughProperty("ImageList1")]
		private ImageList _ImageList1;

		[CompilerGenerated]
		[AccessedThroughProperty("TimerExit")]
		private System.Windows.Forms.Timer _TimerExit;

		[CompilerGenerated]
		[AccessedThroughProperty("txtMain")]
		private RichTextBox _txtMain;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripFontbar")]
		private ToolStrip _ToolStripFontbar;

		[CompilerGenerated]
		[AccessedThroughProperty("StatusStrip1")]
		private StatusStrip _StatusStrip1;

		[CompilerGenerated]
		[AccessedThroughProperty("TableChapterSceneSelect")]
		private TableLayoutPanel _TableChapterSceneSelect;

		[CompilerGenerated]
		[AccessedThroughProperty("Label1")]
		private Label _Label1;

		[CompilerGenerated]
		[AccessedThroughProperty("Label4")]
		private Label _Label4;

		[CompilerGenerated]
		[AccessedThroughProperty("cmbChapter")]
		private ComboBox _cmbChapter;

		[CompilerGenerated]
		[AccessedThroughProperty("cmbScene")]
		private ComboBox _cmbScene;

		[CompilerGenerated]
		[AccessedThroughProperty("tssStatus")]
		private ToolStripStatusLabel _tssStatus;

		[CompilerGenerated]
		[AccessedThroughProperty("tssSceneWordCount")]
		private ToolStripStatusLabel _tssSceneWordCount;

		[CompilerGenerated]
		[AccessedThroughProperty("tssChaptername")]
		private ToolStripStatusLabel _tssChaptername;

		[CompilerGenerated]
		[AccessedThroughProperty("tsbBold")]
		private ToolStripButton _tsbBold;

		[CompilerGenerated]
		[AccessedThroughProperty("tsbItalic")]
		private ToolStripButton _tsbItalic;

		[CompilerGenerated]
		[AccessedThroughProperty("tsbUnderline")]
		private ToolStripButton _tsbUnderline;

		[CompilerGenerated]
		[AccessedThroughProperty("cmbFont")]
		private ToolStripComboBox _cmbFont;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator3")]
		private ToolStripSeparator _ToolStripSeparator3;

		[CompilerGenerated]
		[AccessedThroughProperty("cmbFontSize")]
		private ToolStripComboBox _cmbFontSize;

		[CompilerGenerated]
		[AccessedThroughProperty("cmbStatus")]
		private ComboBox _cmbStatus;

		[CompilerGenerated]
		[AccessedThroughProperty("cmbField0")]
		private ComboBox _cmbField0;

		[CompilerGenerated]
		[AccessedThroughProperty("lblField1")]
		private Label _lblField1;

		[CompilerGenerated]
		[AccessedThroughProperty("cmbField2")]
		private ComboBox _cmbField2;

		[CompilerGenerated]
		[AccessedThroughProperty("cmbField3")]
		private ComboBox _cmbField3;

		[CompilerGenerated]
		[AccessedThroughProperty("lblField0")]
		private Label _lblField0;

		[CompilerGenerated]
		[AccessedThroughProperty("cmbField1")]
		private ComboBox _cmbField1;

		[CompilerGenerated]
		[AccessedThroughProperty("lblField3")]
		private Label _lblField3;

		[CompilerGenerated]
		[AccessedThroughProperty("lblField2")]
		private Label _lblField2;

		[CompilerGenerated]
		[AccessedThroughProperty("fraDHM")]
		private GroupBox _fraDHM;

		[CompilerGenerated]
		[AccessedThroughProperty("cmbHour")]
		private ComboBox _cmbHour;

		[CompilerGenerated]
		[AccessedThroughProperty("txtDay")]
		private TextBox _txtDay;

		[CompilerGenerated]
		[AccessedThroughProperty("cmbMinute")]
		private ComboBox _cmbMinute;

		[CompilerGenerated]
		[AccessedThroughProperty("_Label7_0")]
		private Label __Label7_0;

		[CompilerGenerated]
		[AccessedThroughProperty("_Label7_1")]
		private Label __Label7_1;

		[CompilerGenerated]
		[AccessedThroughProperty("_Label7_2")]
		private Label __Label7_2;

		[CompilerGenerated]
		[AccessedThroughProperty("fraLasts")]
		private GroupBox _fraLasts;

		[CompilerGenerated]
		[AccessedThroughProperty("cmbLastsHours")]
		private ComboBox _cmbLastsHours;

		[CompilerGenerated]
		[AccessedThroughProperty("txtLastsDays")]
		private TextBox _txtLastsDays;

		[CompilerGenerated]
		[AccessedThroughProperty("cmbLastsMinutes")]
		private ComboBox _cmbLastsMinutes;

		[CompilerGenerated]
		[AccessedThroughProperty("_Label7_5")]
		private Label __Label7_5;

		[CompilerGenerated]
		[AccessedThroughProperty("_Label7_4")]
		private Label __Label7_4;

		[CompilerGenerated]
		[AccessedThroughProperty("_Label7_3")]
		private Label __Label7_3;

		[CompilerGenerated]
		[AccessedThroughProperty("cmbViewpoint")]
		private ComboBox _cmbViewpoint;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdAddChar")]
		private Button _cmdAddChar;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdEditChar")]
		private Button _cmdEditChar;

		[CompilerGenerated]
		[AccessedThroughProperty("TableLayoutPanel3")]
		private TableLayoutPanel _TableLayoutPanel3;

		[CompilerGenerated]
		[AccessedThroughProperty("lblGoal")]
		private Label _lblGoal;

		[CompilerGenerated]
		[AccessedThroughProperty("txtOutcome")]
		private TextBox _txtOutcome;

		[CompilerGenerated]
		[AccessedThroughProperty("txtConflict")]
		private TextBox _txtConflict;

		[CompilerGenerated]
		[AccessedThroughProperty("txtGoal")]
		private TextBox _txtGoal;

		[CompilerGenerated]
		[AccessedThroughProperty("lblConflict")]
		private Label _lblConflict;

		[CompilerGenerated]
		[AccessedThroughProperty("lblOutcome")]
		private Label _lblOutcome;

		[CompilerGenerated]
		[AccessedThroughProperty("TableLayoutPanel4")]
		private TableLayoutPanel _TableLayoutPanel4;

		[CompilerGenerated]
		[AccessedThroughProperty("ListCharUsed")]
		private ListView _ListCharUsed;

		[CompilerGenerated]
		[AccessedThroughProperty("__ListChar_0_ColumnHeader_1")]
		private ColumnHeader ___ListChar_0_ColumnHeader_1;

		[CompilerGenerated]
		[AccessedThroughProperty("__ListChar_0_ColumnHeader_2")]
		private ColumnHeader ___ListChar_0_ColumnHeader_2;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxListsRC")]
		private ContextMenuStrip _ctxListsRC;

		[CompilerGenerated]
		[AccessedThroughProperty("tsmEditListItem")]
		private ToolStripMenuItem _tsmEditListItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxRC")]
		private ContextMenuStrip _ctxRC;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxCut")]
		private ToolStripMenuItem _ctxCut;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxCopy")]
		private ToolStripMenuItem _ctxCopy;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxPaste")]
		private ToolStripMenuItem _ctxPaste;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator5")]
		private ToolStripSeparator _ToolStripSeparator5;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxCutAsTitle")]
		private ToolStripMenuItem _ctxCutAsTitle;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxCutAsDesc")]
		private ToolStripMenuItem _ctxCutAsDesc;

		[CompilerGenerated]
		[AccessedThroughProperty("tsbSepDict")]
		private ToolStripSeparator _tsbSepDict;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxAddToDict")]
		private ToolStripMenuItem _ctxAddToDict;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator7")]
		private ToolStripSeparator _ToolStripSeparator7;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxDictLookup")]
		private ToolStripMenuItem _ctxDictLookup;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxThesLookup")]
		private ToolStripMenuItem _ctxThesLookup;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator8")]
		private ToolStripSeparator _ToolStripSeparator8;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxFGColour")]
		private ToolStripMenuItem _ctxFGColour;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxBGColour")]
		private ToolStripMenuItem _ctxBGColour;

		[CompilerGenerated]
		[AccessedThroughProperty("ListCharAll")]
		private ListView _ListCharAll;

		[CompilerGenerated]
		[AccessedThroughProperty("__ListChar_1_ColumnHeader_1")]
		private ColumnHeader ___ListChar_1_ColumnHeader_1;

		[CompilerGenerated]
		[AccessedThroughProperty("__ListChar_1_ColumnHeader_2")]
		private ColumnHeader ___ListChar_1_ColumnHeader_2;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdPrev")]
		private Button _cmdPrev;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdSaveAndExit")]
		private Button _cmdSaveAndExit;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdSave")]
		private Button _cmdSave;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdNext")]
		private Button _cmdNext;

		[CompilerGenerated]
		[AccessedThroughProperty("TabControl2")]
		private TabControl _TabControl2;

		[CompilerGenerated]
		[AccessedThroughProperty("TabContent")]
		private TabPage _TabContent;

		[CompilerGenerated]
		[AccessedThroughProperty("TabCharacters")]
		private TabPage _TabCharacters;

		[CompilerGenerated]
		[AccessedThroughProperty("TabDetails")]
		private TabPage _TabDetails;

		[CompilerGenerated]
		[AccessedThroughProperty("Label5")]
		private Label _Label5;

		[CompilerGenerated]
		[AccessedThroughProperty("lblFullName")]
		private Label _lblFullName;

		[CompilerGenerated]
		[AccessedThroughProperty("lblViewpointChar")]
		private Label _lblViewpointChar;

		[CompilerGenerated]
		[AccessedThroughProperty("Label7")]
		private Label _Label7;

		[CompilerGenerated]
		[AccessedThroughProperty("Label6")]
		private Label _Label6;

		[CompilerGenerated]
		[AccessedThroughProperty("Panel2")]
		private Panel _Panel2;

		[CompilerGenerated]
		[AccessedThroughProperty("TableLayoutPanel5")]
		private TableLayoutPanel _TableLayoutPanel5;

		[CompilerGenerated]
		[AccessedThroughProperty("txtCharNotes")]
		private RichTextBox _txtCharNotes;

		[CompilerGenerated]
		[AccessedThroughProperty("txtCharDesc")]
		private RichTextBox _txtCharDesc;

		[CompilerGenerated]
		[AccessedThroughProperty("tabImage")]
		private TabPage _tabImage;

		[CompilerGenerated]
		[AccessedThroughProperty("Picture1")]
		private PictureBox _Picture1;

		[CompilerGenerated]
		[AccessedThroughProperty("txtImageFile")]
		private TextBox _txtImageFile;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdSelectImage")]
		private Button _cmdSelectImage;

		[CompilerGenerated]
		[AccessedThroughProperty("Image2")]
		private PictureBox _Image2;

		[CompilerGenerated]
		[AccessedThroughProperty("lblImageData")]
		private Label _lblImageData;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator1")]
		private ToolStripSeparator _ToolStripSeparator1;

		[CompilerGenerated]
		[AccessedThroughProperty("SetFontColourToolStripMenuItem")]
		private ToolStripMenuItem _SetFontColourToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("SetBackgroundColourToolStripMenuItem")]
		private ToolStripMenuItem _SetBackgroundColourToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ColorDialog1")]
		private ColorDialog _ColorDialog1;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator2")]
		private ToolStripSeparator _ToolStripSeparator2;

		[CompilerGenerated]
		[AccessedThroughProperty("OpenDictionaryFolderToolStripMenuItem")]
		private ToolStripMenuItem _OpenDictionaryFolderToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("SetParagraphIndentToolStripMenuItem")]
		private ToolStripMenuItem _SetParagraphIndentToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator4")]
		private ToolStripSeparator _ToolStripSeparator4;

		[CompilerGenerated]
		[AccessedThroughProperty("UseRightctrlForDBCSEntryToolStripMenuItem")]
		private ToolStripMenuItem _UseRightctrlForDBCSEntryToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("Splitter1")]
		private Splitter _Splitter1;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator6")]
		private ToolStripSeparator _ToolStripSeparator6;

		[CompilerGenerated]
		[AccessedThroughProperty("FullScreenEditorToolStripMenu")]
		private ToolStripMenuItem _FullScreenEditorToolStripMenu;

		[CompilerGenerated]
		[AccessedThroughProperty("SettingsToolStripMenuItem")]
		private ToolStripMenuItem _SettingsToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator9")]
		private ToolStripSeparator _ToolStripSeparator9;

		[CompilerGenerated]
		[AccessedThroughProperty("HideFontBarToolStripMenuItem1")]
		private ToolStripMenuItem _HideFontBarToolStripMenuItem1;

		[CompilerGenerated]
		[AccessedThroughProperty("FullScreenEditorWithMarginsToolStripMenuItem")]
		private ToolStripMenuItem _FullScreenEditorWithMarginsToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("lblSelectedCharID")]
		private Label _lblSelectedCharID;

		[CompilerGenerated]
		[AccessedThroughProperty("ManualToolStripMenuItem")]
		private ToolStripMenuItem _ManualToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator10")]
		private ToolStripSeparator _ToolStripSeparator10;

		[CompilerGenerated]
		[AccessedThroughProperty("tsbReadAloud")]
		private ToolStripButton _tsbReadAloud;

		[CompilerGenerated]
		[AccessedThroughProperty("tsbStopReading")]
		private ToolStripButton _tsbStopReading;

		[CompilerGenerated]
		[AccessedThroughProperty("tsbSetupSpeech")]
		private ToolStripButton _tsbSetupSpeech;

		[CompilerGenerated]
		[AccessedThroughProperty("fraSpecificDateTime")]
		private GroupBox _fraSpecificDateTime;

		[CompilerGenerated]
		[AccessedThroughProperty("lblSpecificTime")]
		private Label _lblSpecificTime;

		[CompilerGenerated]
		[AccessedThroughProperty("lblSpecificDate")]
		private Label _lblSpecificDate;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdSwitchDateMode1")]
		private Button _cmdSwitchDateMode1;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdSwitchDateMode2")]
		private Button _cmdSwitchDateMode2;

		[CompilerGenerated]
		[AccessedThroughProperty("Label11")]
		private Label _Label11;

		[CompilerGenerated]
		[AccessedThroughProperty("Label10")]
		private Label _Label10;

		[CompilerGenerated]
		[AccessedThroughProperty("ClearImageToolStripMenuItem")]
		private ToolStripMenuItem _ClearImageToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("AllowTABInEditorWindowToolStripMenuItem")]
		private ToolStripMenuItem _AllowTABInEditorWindowToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator11")]
		private ToolStripSeparator _ToolStripSeparator11;

		[CompilerGenerated]
		[AccessedThroughProperty("ClearSelectedHighlightToolStripMenuItem")]
		private ToolStripMenuItem _ClearSelectedHighlightToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("Label12")]
		private Label _Label12;

		[CompilerGenerated]
		[AccessedThroughProperty("txtTags")]
		private TextBox _txtTags;

		[CompilerGenerated]
		[AccessedThroughProperty("TabNotes")]
		private TabPage _TabNotes;

		[CompilerGenerated]
		[AccessedThroughProperty("txtNotes")]
		private RichTextBox _txtNotes;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator12")]
		private ToolStripSeparator _ToolStripSeparator12;

		[CompilerGenerated]
		[AccessedThroughProperty("tsmHighlight")]
		private ToolStripDropDownButton _tsmHighlight;

		[CompilerGenerated]
		[AccessedThroughProperty("ClearSelectedHighlightToolStripMenuItem1")]
		private ToolStripMenuItem _ClearSelectedHighlightToolStripMenuItem1;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator13")]
		private ToolStripSeparator _ToolStripSeparator13;

		[CompilerGenerated]
		[AccessedThroughProperty("TableLayoutPanel6")]
		private TableLayoutPanel _TableLayoutPanel6;

		[CompilerGenerated]
		[AccessedThroughProperty("TimerFillFontCombo")]
		private System.Windows.Forms.Timer _TimerFillFontCombo;

		[CompilerGenerated]
		[AccessedThroughProperty("UndoCtrlZToolStripMenuItem")]
		private ToolStripMenuItem _UndoCtrlZToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("RedoCtrlYToolStripMenuItem")]
		private ToolStripMenuItem _RedoCtrlYToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator14")]
		private ToolStripSeparator _ToolStripSeparator14;

		[CompilerGenerated]
		[AccessedThroughProperty("TabPage1")]
		private TabPage _TabPage1;

		[CompilerGenerated]
		[AccessedThroughProperty("TableLayoutPanel7")]
		private TableLayoutPanel _TableLayoutPanel7;

		[CompilerGenerated]
		[AccessedThroughProperty("ListLocAll")]
		private ListView _ListLocAll;

		[CompilerGenerated]
		[AccessedThroughProperty("ColumnHeader3")]
		private ColumnHeader _ColumnHeader3;

		[CompilerGenerated]
		[AccessedThroughProperty("ListLocUsed")]
		private ListView _ListLocUsed;

		[CompilerGenerated]
		[AccessedThroughProperty("ColumnHeader1")]
		private ColumnHeader _ColumnHeader1;

		[CompilerGenerated]
		[AccessedThroughProperty("TabItems")]
		private TabPage _TabItems;

		[CompilerGenerated]
		[AccessedThroughProperty("TableLayoutPanel9")]
		private TableLayoutPanel _TableLayoutPanel9;

		[CompilerGenerated]
		[AccessedThroughProperty("ListItemsAll")]
		private ListView _ListItemsAll;

		[CompilerGenerated]
		[AccessedThroughProperty("ColumnHeader5")]
		private ColumnHeader _ColumnHeader5;

		[CompilerGenerated]
		[AccessedThroughProperty("listItemsUsed")]
		private ListView _listItemsUsed;

		[CompilerGenerated]
		[AccessedThroughProperty("ColumnHeader6")]
		private ColumnHeader _ColumnHeader6;

		[CompilerGenerated]
		[AccessedThroughProperty("TableLayoutPanel8")]
		private TableLayoutPanel _TableLayoutPanel8;

		[CompilerGenerated]
		[AccessedThroughProperty("ListView1")]
		private ListView _ListView1;

		[CompilerGenerated]
		[AccessedThroughProperty("ColumnHeader2")]
		private ColumnHeader _ColumnHeader2;

		[CompilerGenerated]
		[AccessedThroughProperty("ListView2")]
		private ListView _ListView2;

		[CompilerGenerated]
		[AccessedThroughProperty("ColumnHeader4")]
		private ColumnHeader _ColumnHeader4;

		[CompilerGenerated]
		[AccessedThroughProperty("lblStatus")]
		private Label _lblStatus;

		[CompilerGenerated]
		[AccessedThroughProperty("GroupBox1")]
		private GroupBox _GroupBox1;

		[CompilerGenerated]
		[AccessedThroughProperty("GroupBox2")]
		private GroupBox _GroupBox2;

		[CompilerGenerated]
		[AccessedThroughProperty("optReaction")]
		private RadioButton _optReaction;

		[CompilerGenerated]
		[AccessedThroughProperty("optAction")]
		private RadioButton _optAction;

		[CompilerGenerated]
		[AccessedThroughProperty("optSubplot")]
		private RadioButton _optSubplot;

		[CompilerGenerated]
		[AccessedThroughProperty("optPlot")]
		private RadioButton _optPlot;

		[CompilerGenerated]
		[AccessedThroughProperty("StatusRatingsToolStripMenuItem")]
		private ToolStripMenuItem _StatusRatingsToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("GroupBox4")]
		private GroupBox _GroupBox4;

		[CompilerGenerated]
		[AccessedThroughProperty("GroupBox3")]
		private GroupBox _GroupBox3;

		[CompilerGenerated]
		[AccessedThroughProperty("tssStrikeThru")]
		private ToolStripButton _tssStrikeThru;

		[CompilerGenerated]
		[AccessedThroughProperty("tssFilename")]
		private ToolStripStatusLabel _tssFilename;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuMarkKnownLocations")]
		private ToolStripMenuItem _mnuMarkKnownLocations;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuMarkKnownItems")]
		private ToolStripMenuItem _mnuMarkKnownItems;

		[CompilerGenerated]
		[AccessedThroughProperty("KeyboardShortcutsToolStripMenuItem")]
		private ToolStripMenuItem _KeyboardShortcutsToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("chkAppendToPrev")]
		private CheckBox _chkAppendToPrev;

		[CompilerGenerated]
		[AccessedThroughProperty("tssPrintStatus")]
		private ToolStripStatusLabel _tssPrintStatus;

		[CompilerGenerated]
		[AccessedThroughProperty("ClickableHyperlinksToolStripMenuItem")]
		private ToolStripMenuItem _ClickableHyperlinksToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("InsertLinkToolStripMenuItem")]
		private ToolStripMenuItem _InsertLinkToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("CustomColoursToolStripMenuItem")]
		private ToolStripMenuItem _CustomColoursToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("SetCharacterHighlightToolStripMenuItem")]
		private ToolStripMenuItem _SetCharacterHighlightToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("SetLocationsColourToolStripMenuItem")]
		private ToolStripMenuItem _SetLocationsColourToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("SetItemsColourToolStripMenuItem")]
		private ToolStripMenuItem _SetItemsColourToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator15")]
		private ToolStripSeparator _ToolStripSeparator15;

		[CompilerGenerated]
		[AccessedThroughProperty("SetSpellCheckColourToolStripMenuItem")]
		private ToolStripMenuItem _SetSpellCheckColourToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("SetHighlightColourToolStripMenuItem")]
		private ToolStripMenuItem _SetHighlightColourToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("DefaultsToolStripMenuItem")]
		private ToolStripMenuItem _DefaultsToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("tsmDefaultSpellColour")]
		private ToolStripMenuItem _tsmDefaultSpellColour;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator16")]
		private ToolStripSeparator _ToolStripSeparator16;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator17")]
		private ToolStripSeparator _ToolStripSeparator17;

		[CompilerGenerated]
		[AccessedThroughProperty("TypewriterSoundsToolStripMenuItem")]
		private ToolStripMenuItem _TypewriterSoundsToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("TiledEditorWindowsToolStripMenuItem")]
		private ToolStripMenuItem _TiledEditorWindowsToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("lblUnusedIndicator")]
		private Label _lblUnusedIndicator;

		[CompilerGenerated]
		[AccessedThroughProperty("tabGoals")]
		private TabPage _tabGoals;

		[CompilerGenerated]
		[AccessedThroughProperty("AddSelectionAsNewCharacterToolStripMenuItem")]
		private ToolStripMenuItem _AddSelectionAsNewCharacterToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("CreateLocationFromSelectionToolStripMenuItem")]
		private ToolStripMenuItem _CreateLocationFromSelectionToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("CreateItemFromSelectionToolStripMenuItem")]
		private ToolStripMenuItem _CreateItemFromSelectionToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator18")]
		private ToolStripSeparator _ToolStripSeparator18;

		[CompilerGenerated]
		[AccessedThroughProperty("tssToday")]
		private ToolStripStatusLabel _tssToday;

		[CompilerGenerated]
		[AccessedThroughProperty("ReplaceWithToolStripMenuItem")]
		private ToolStripMenuItem _ReplaceWithToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator19")]
		private ToolStripSeparator _ToolStripSeparator19;

		[CompilerGenerated]
		[AccessedThroughProperty("tsbCopy")]
		private ToolStripButton _tsbCopy;

		[CompilerGenerated]
		[AccessedThroughProperty("tsbCut")]
		private ToolStripButton _tsbCut;

		[CompilerGenerated]
		[AccessedThroughProperty("tsbPaste")]
		private ToolStripButton _tsbPaste;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator20")]
		private ToolStripSeparator _ToolStripSeparator20;

		[CompilerGenerated]
		[AccessedThroughProperty("tsmAddListItem")]
		private ToolStripMenuItem _tsmAddListItem;

		[CompilerGenerated]
		[AccessedThroughProperty("tsbLeftAlign")]
		private ToolStripButton _tsbLeftAlign;

		[CompilerGenerated]
		[AccessedThroughProperty("tsbAlignRight")]
		private ToolStripButton _tsbAlignRight;

		[CompilerGenerated]
		[AccessedThroughProperty("tsbAlignCentre")]
		private ToolStripButton _tsbAlignCentre;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator21")]
		private ToolStripSeparator _ToolStripSeparator21;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdClear")]
		private Button _cmdClear;

		[CompilerGenerated]
		[AccessedThroughProperty("tssSpeed")]
		private ToolStripStatusLabel _tssSpeed;

		[CompilerGenerated]
		[AccessedThroughProperty("TimerSpeed")]
		private System.Windows.Forms.Timer _TimerSpeed;

		[CompilerGenerated]
		[AccessedThroughProperty("TabPage2")]
		private TabPage _TabPage2;

		[CompilerGenerated]
		[AccessedThroughProperty("Panel3")]
		private Panel _Panel3;

		[CompilerGenerated]
		[AccessedThroughProperty("PanelExportCondAll")]
		private Panel _PanelExportCondAll;

		[CompilerGenerated]
		[AccessedThroughProperty("Label3")]
		private Label _Label3;

		[CompilerGenerated]
		[AccessedThroughProperty("PanelSpecificExportOpts")]
		private Panel _PanelSpecificExportOpts;

		[CompilerGenerated]
		[AccessedThroughProperty("chkWhenHTML")]
		private CheckBox _chkWhenHTML;

		[CompilerGenerated]
		[AccessedThroughProperty("chkWhenText")]
		private CheckBox _chkWhenText;

		[CompilerGenerated]
		[AccessedThroughProperty("chkWhenRTF")]
		private CheckBox _chkWhenRTF;

		[CompilerGenerated]
		[AccessedThroughProperty("chkWhenLatex")]
		private CheckBox _chkWhenLatex;

		[CompilerGenerated]
		[AccessedThroughProperty("Label2")]
		private Label _Label2;

		[CompilerGenerated]
		[AccessedThroughProperty("optConditions")]
		private RadioButton _optConditions;

		[CompilerGenerated]
		[AccessedThroughProperty("optAlways")]
		private RadioButton _optAlways;

		[CompilerGenerated]
		[AccessedThroughProperty("SpecialCodesToolStripMenuItem")]
		private ToolStripMenuItem _SpecialCodesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("tssClearSelectedFormatting")]
		private ToolStripButton _tssClearSelectedFormatting;

		[CompilerGenerated]
		[AccessedThroughProperty("ViewInReverseOrderToolStripMenuItem")]
		private ToolStripMenuItem _ViewInReverseOrderToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("chkWhenRTFChapters")]
		private CheckBox _chkWhenRTFChapters;

		[CompilerGenerated]
		[AccessedThroughProperty("TableLayoutMainDetails")]
		private TableLayoutPanel _TableLayoutMainDetails;

		[CompilerGenerated]
		[AccessedThroughProperty("PanelMainTextPadding")]
		private Panel _PanelMainTextPadding;

		[CompilerGenerated]
		[AccessedThroughProperty("PanelTabs")]
		private Panel _PanelTabs;

		[CompilerGenerated]
		[AccessedThroughProperty("MainMenu1")]
		private MenuStrip _MainMenu1;

		[CompilerGenerated]
		[AccessedThroughProperty("CapitaliseFirstLetterOfSentenceToolStripMenuItem")]
		private ToolStripMenuItem _CapitaliseFirstLetterOfSentenceToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("AlwaysCapitaliseIToolStripMenuItem")]
		private ToolStripMenuItem _AlwaysCapitaliseIToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("tabTime")]
		private TabPage _tabTime;

		[CompilerGenerated]
		[AccessedThroughProperty("tabRatings")]
		private TabPage _tabRatings;

		[CompilerGenerated]
		[AccessedThroughProperty("Label8")]
		private Label _Label8;

		[CompilerGenerated]
		[AccessedThroughProperty("txtDesc")]
		private RichTextBox _txtDesc;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdComment")]
		private ToolStripButton _cmdComment;

		[CompilerGenerated]
		[AccessedThroughProperty("txtTitle")]
		private TextBox _txtTitle;

		private clsFillList cFill;

		private object SpeechEngine;

		[CompilerGenerated]
		[AccessedThroughProperty("cPC")]
		private clsPrintScene _cPC;

		private int WPSWordsTyped;

		private int WPSSeconds;

		private int WPSPeak;

		private bool EditorDone;

		[CompilerGenerated]
		private FinishedEventHandler FinishedEvent;

		[CompilerGenerated]
		private TriggerTiledWindowsEventHandler TriggerTiledWindowsEvent;

		[CompilerGenerated]
		private TriggerUntiledWindowsEventHandler TriggerUntiledWindowsEvent;

		[CompilerGenerated]
		private EditDifferentSceneEventHandler EditDifferentSceneEvent;

		[CompilerGenerated]
		private CreateNewSceneEventHandler CreateNewSceneEvent;

		[CompilerGenerated]
		private SettingsChangedEventHandler SettingsChangedEvent;

		private bool Initialising;

		private clsRTF cRTF;

		private RichTextBox TBHidden;

		private string strMainTextComparer;

		private bool Talking;

		private bool DraggingChar;

		private bool DraggingLocation;

		private bool DraggingItem;

		private bool WithDescription;

		public bool Saved;

		private int CurrentIndent;

		private bool CapitaliseFirst;

		private bool CapitaliseI;

		private string CapPrePreChar;

		private string CapPreChar;

		private string CapPPChar;

		private string CapPChar;

		private ComboBox[] cmbFieldVal;

		private Label[] lblFieldTitle;

		private const string DictURL = "http://downloads.sourceforge.net/project/wordlist/12Dicts/5.0/12dicts-5.0.zip";

		private int CurrentPos;

		private Color DefaultCharColour;

		private Color CharColour;

		private Color DefaultLocationsColour;

		private Color LocationsColour;

		private Color DefaultItemsColour;

		private Color ItemsColour;

		private Color DefaultSpellingcolour;

		private Color Spellingcolour;

		private bool mvarDirty;

		private bool SuppressComboChange;

		private Color DefaultBackgroundInk;

		private int LocalScID;

		private bool Maxed;

		[CompilerGenerated]
		[AccessedThroughProperty("Find")]
		private frmFind _Find;

		public string CurrentSearchString;

		private bool CurrentSensitive;

		private bool TypewriterSounds;

		private int SequentialBackupTimer;

		private bool FirstBackup;

		private Collection colUndo;

		private int iUndo;

		private const int MAXUNDO = 50;

		private bool SuppressSnapshot;

		private bool AlreadySpellChecking;

		private string PreviousBackupContent;

		private Color BGColour;

		private Color FGColour;

		private int WordCountTextlength;

		private clsProject cProject;

		private DateTime LastKeypress;

		private bool UseRightControl;

		private bool AllowTabsInEditor;

		private string ProjectImageFolder;

		private int KeyPressCounter;

		private Panel MALeft;

		private Panel MARight;

		private Panel MATop;

		private Panel MABottom;

		private int _0024STATIC_0024NextReminder_0024200E_0024CurrentReminder;

		private bool _0024STATIC_0024ReadEditorSettings_00242001_0024AlreadyReading;

		public virtual ToolStripMenuItem mnuSave
		{
			[CompilerGenerated]
			get
			{
				return _mnuSave;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSave_Click;
				ToolStripMenuItem mnuSave = _mnuSave;
				if (mnuSave != null)
				{
					mnuSave.Click -= value2;
				}
				_mnuSave = value;
				mnuSave = _mnuSave;
				if (mnuSave != null)
				{
					mnuSave.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuSaveAndExit
		{
			[CompilerGenerated]
			get
			{
				return _mnuSaveAndExit;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSaveAndExit_Click;
				ToolStripMenuItem mnuSaveAndExit = _mnuSaveAndExit;
				if (mnuSaveAndExit != null)
				{
					mnuSaveAndExit.Click -= value2;
				}
				_mnuSaveAndExit = value;
				mnuSaveAndExit = _mnuSaveAndExit;
				if (mnuSaveAndExit != null)
				{
					mnuSaveAndExit.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("pbar1")]
		public virtual ToolStripSeparator pbar1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem mnuExit
		{
			[CompilerGenerated]
			get
			{
				return _mnuExit;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuExit_Click;
				ToolStripMenuItem mnuExit = _mnuExit;
				if (mnuExit != null)
				{
					mnuExit.Click -= value2;
				}
				_mnuExit = value;
				mnuExit = _mnuExit;
				if (mnuExit != null)
				{
					mnuExit.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("mnuFile")]
		public virtual ToolStripMenuItem mnuFile
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem mnuNewScene
		{
			[CompilerGenerated]
			get
			{
				return _mnuNewScene;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuNewScene_Click;
				ToolStripMenuItem mnuNewScene = _mnuNewScene;
				if (mnuNewScene != null)
				{
					mnuNewScene.Click -= value2;
				}
				_mnuNewScene = value;
				mnuNewScene = _mnuNewScene;
				if (mnuNewScene != null)
				{
					mnuNewScene.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuInsertScene
		{
			[CompilerGenerated]
			get
			{
				return _mnuInsertScene;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuInsertScene_Click;
				ToolStripMenuItem mnuInsertScene = _mnuInsertScene;
				if (mnuInsertScene != null)
				{
					mnuInsertScene.Click -= value2;
				}
				_mnuInsertScene = value;
				mnuInsertScene = _mnuInsertScene;
				if (mnuInsertScene != null)
				{
					mnuInsertScene.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("pbar12")]
		public virtual ToolStripSeparator pbar12
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem mnuPrintScene
		{
			[CompilerGenerated]
			get
			{
				return _mnuPrintScene;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuPrintScene_Click;
				ToolStripMenuItem mnuPrintScene = _mnuPrintScene;
				if (mnuPrintScene != null)
				{
					mnuPrintScene.Click -= value2;
				}
				_mnuPrintScene = value;
				mnuPrintScene = _mnuPrintScene;
				if (mnuPrintScene != null)
				{
					mnuPrintScene.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("scnsplit")]
		public virtual ToolStripSeparator scnsplit
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem mnuSplitScene0
		{
			[CompilerGenerated]
			get
			{
				return _mnuSplitScene0;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSplitScene_Click;
				ToolStripMenuItem mnuSplitScene = _mnuSplitScene0;
				if (mnuSplitScene != null)
				{
					mnuSplitScene.Click -= value2;
				}
				_mnuSplitScene0 = value;
				mnuSplitScene = _mnuSplitScene0;
				if (mnuSplitScene != null)
				{
					mnuSplitScene.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuSplitScene1
		{
			[CompilerGenerated]
			get
			{
				return _mnuSplitScene1;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSplitScene_Click;
				ToolStripMenuItem mnuSplitScene = _mnuSplitScene1;
				if (mnuSplitScene != null)
				{
					mnuSplitScene.Click -= value2;
				}
				_mnuSplitScene1 = value;
				mnuSplitScene = _mnuSplitScene1;
				if (mnuSplitScene != null)
				{
					mnuSplitScene.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuSplitScene2
		{
			[CompilerGenerated]
			get
			{
				return _mnuSplitScene2;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSplitScene_Click;
				ToolStripMenuItem mnuSplitScene = _mnuSplitScene2;
				if (mnuSplitScene != null)
				{
					mnuSplitScene.Click -= value2;
				}
				_mnuSplitScene2 = value;
				mnuSplitScene = _mnuSplitScene2;
				if (mnuSplitScene != null)
				{
					mnuSplitScene.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuSplitSceneCustom
		{
			[CompilerGenerated]
			get
			{
				return _mnuSplitSceneCustom;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSplitSceneCustom_Click;
				ToolStripMenuItem mnuSplitSceneCustom = _mnuSplitSceneCustom;
				if (mnuSplitSceneCustom != null)
				{
					mnuSplitSceneCustom.Click -= value2;
				}
				_mnuSplitSceneCustom = value;
				mnuSplitSceneCustom = _mnuSplitSceneCustom;
				if (mnuSplitSceneCustom != null)
				{
					mnuSplitSceneCustom.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("pbarsplit")]
		public virtual ToolStripSeparator pbarsplit
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem mnuTop20
		{
			[CompilerGenerated]
			get
			{
				return _mnuTop20;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuTop20_Click;
				ToolStripMenuItem mnuTop = _mnuTop20;
				if (mnuTop != null)
				{
					mnuTop.Click -= value2;
				}
				_mnuTop20 = value;
				mnuTop = _mnuTop20;
				if (mnuTop != null)
				{
					mnuTop.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("pbaryb")]
		public virtual ToolStripSeparator pbaryb
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem mnuyBook
		{
			[CompilerGenerated]
			get
			{
				return _mnuyBook;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuyBook_Click;
				ToolStripMenuItem mnuyBook = _mnuyBook;
				if (mnuyBook != null)
				{
					mnuyBook.Click -= value2;
				}
				_mnuyBook = value;
				mnuyBook = _mnuyBook;
				if (mnuyBook != null)
				{
					mnuyBook.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("mnuScene")]
		public virtual ToolStripMenuItem mnuScene
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem mnuBarCopy
		{
			[CompilerGenerated]
			get
			{
				return _mnuBarCopy;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuBarCopy_Click;
				ToolStripMenuItem mnuBarCopy = _mnuBarCopy;
				if (mnuBarCopy != null)
				{
					mnuBarCopy.Click -= value2;
				}
				_mnuBarCopy = value;
				mnuBarCopy = _mnuBarCopy;
				if (mnuBarCopy != null)
				{
					mnuBarCopy.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuBarPaste
		{
			[CompilerGenerated]
			get
			{
				return _mnuBarPaste;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuBarPaste_Click;
				ToolStripMenuItem mnuBarPaste = _mnuBarPaste;
				if (mnuBarPaste != null)
				{
					mnuBarPaste.Click -= value2;
				}
				_mnuBarPaste = value;
				mnuBarPaste = _mnuBarPaste;
				if (mnuBarPaste != null)
				{
					mnuBarPaste.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("pbarPaste")]
		public virtual ToolStripSeparator pbarPaste
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem mnuFind
		{
			[CompilerGenerated]
			get
			{
				return _mnuFind;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuFind_Click;
				ToolStripMenuItem mnuFind = _mnuFind;
				if (mnuFind != null)
				{
					mnuFind.Click -= value2;
				}
				_mnuFind = value;
				mnuFind = _mnuFind;
				if (mnuFind != null)
				{
					mnuFind.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuFindNext
		{
			[CompilerGenerated]
			get
			{
				return _mnuFindNext;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuFindNext_Click;
				ToolStripMenuItem mnuFindNext = _mnuFindNext;
				if (mnuFindNext != null)
				{
					mnuFindNext.Click -= value2;
				}
				_mnuFindNext = value;
				mnuFindNext = _mnuFindNext;
				if (mnuFindNext != null)
				{
					mnuFindNext.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuFindPrev
		{
			[CompilerGenerated]
			get
			{
				return _mnuFindPrev;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuFindPrev_Click;
				ToolStripMenuItem mnuFindPrev = _mnuFindPrev;
				if (mnuFindPrev != null)
				{
					mnuFindPrev.Click -= value2;
				}
				_mnuFindPrev = value;
				mnuFindPrev = _mnuFindPrev;
				if (mnuFindPrev != null)
				{
					mnuFindPrev.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuReplace
		{
			[CompilerGenerated]
			get
			{
				return _mnuReplace;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuReplace_Click;
				ToolStripMenuItem mnuReplace = _mnuReplace;
				if (mnuReplace != null)
				{
					mnuReplace.Click -= value2;
				}
				_mnuReplace = value;
				mnuReplace = _mnuReplace;
				if (mnuReplace != null)
				{
					mnuReplace.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuSettings
		{
			[CompilerGenerated]
			get
			{
				return _mnuSettings;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSettings_Click;
				ToolStripMenuItem mnuSettings = _mnuSettings;
				if (mnuSettings != null)
				{
					mnuSettings.Click -= value2;
				}
				_mnuSettings = value;
				mnuSettings = _mnuSettings;
				if (mnuSettings != null)
				{
					mnuSettings.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuSelectFont
		{
			[CompilerGenerated]
			get
			{
				return _mnuSelectFont;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSelectFont_Click;
				ToolStripMenuItem mnuSelectFont = _mnuSelectFont;
				if (mnuSelectFont != null)
				{
					mnuSelectFont.Click -= value2;
				}
				_mnuSelectFont = value;
				mnuSelectFont = _mnuSelectFont;
				if (mnuSelectFont != null)
				{
					mnuSelectFont.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuMarkKnownChar
		{
			[CompilerGenerated]
			get
			{
				return _mnuMarkKnownChar;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuChar_Click;
				ToolStripMenuItem mnuMarkKnownChar = _mnuMarkKnownChar;
				if (mnuMarkKnownChar != null)
				{
					mnuMarkKnownChar.Click -= value2;
				}
				_mnuMarkKnownChar = value;
				mnuMarkKnownChar = _mnuMarkKnownChar;
				if (mnuMarkKnownChar != null)
				{
					mnuMarkKnownChar.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuEdit
		{
			[CompilerGenerated]
			get
			{
				return _mnuEdit;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuEdit_Click;
				EventHandler value3 = mnuEdit_DropDownOpening;
				ToolStripMenuItem mnuEdit = _mnuEdit;
				if (mnuEdit != null)
				{
					mnuEdit.Click -= value2;
					mnuEdit.DropDownOpening -= value3;
				}
				_mnuEdit = value;
				mnuEdit = _mnuEdit;
				if (mnuEdit != null)
				{
					mnuEdit.Click += value2;
					mnuEdit.DropDownOpening += value3;
				}
			}
		}

		public virtual ToolStripMenuItem mnuInstallDictionary
		{
			[CompilerGenerated]
			get
			{
				return _mnuInstallDictionary;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuInstallDictionary_Click;
				ToolStripMenuItem mnuInstallDictionary = _mnuInstallDictionary;
				if (mnuInstallDictionary != null)
				{
					mnuInstallDictionary.Click -= value2;
				}
				_mnuInstallDictionary = value;
				mnuInstallDictionary = _mnuInstallDictionary;
				if (mnuInstallDictionary != null)
				{
					mnuInstallDictionary.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuCheckNow
		{
			[CompilerGenerated]
			get
			{
				return _mnuCheckNow;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuCheckNow_Click;
				ToolStripMenuItem mnuCheckNow = _mnuCheckNow;
				if (mnuCheckNow != null)
				{
					mnuCheckNow.Click -= value2;
				}
				_mnuCheckNow = value;
				mnuCheckNow = _mnuCheckNow;
				if (mnuCheckNow != null)
				{
					mnuCheckNow.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuClear
		{
			[CompilerGenerated]
			get
			{
				return _mnuClear;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuClear_Click;
				ToolStripMenuItem mnuClear = _mnuClear;
				if (mnuClear != null)
				{
					mnuClear.Click -= value2;
				}
				_mnuClear = value;
				mnuClear = _mnuClear;
				if (mnuClear != null)
				{
					mnuClear.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuSpellingOn
		{
			[CompilerGenerated]
			get
			{
				return _mnuSpellingOn;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSpellingOn_Click;
				ToolStripMenuItem mnuSpellingOn = _mnuSpellingOn;
				if (mnuSpellingOn != null)
				{
					mnuSpellingOn.Click -= value2;
				}
				_mnuSpellingOn = value;
				mnuSpellingOn = _mnuSpellingOn;
				if (mnuSpellingOn != null)
				{
					mnuSpellingOn.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuSpellMenu
		{
			[CompilerGenerated]
			get
			{
				return _mnuSpellMenu;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSpellMenu_Click;
				EventHandler value3 = mnuSpellMenu_DropDownOpening;
				ToolStripMenuItem mnuSpellMenu = _mnuSpellMenu;
				if (mnuSpellMenu != null)
				{
					mnuSpellMenu.Click -= value2;
					mnuSpellMenu.DropDownOpening -= value3;
				}
				_mnuSpellMenu = value;
				mnuSpellMenu = _mnuSpellMenu;
				if (mnuSpellMenu != null)
				{
					mnuSpellMenu.Click += value2;
					mnuSpellMenu.DropDownOpening += value3;
				}
			}
		}

		public virtual ToolStripMenuItem mnuWritingTips
		{
			[CompilerGenerated]
			get
			{
				return _mnuWritingTips;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuWritingTips_Click;
				ToolStripMenuItem mnuWritingTips = _mnuWritingTips;
				if (mnuWritingTips != null)
				{
					mnuWritingTips.Click -= value2;
				}
				_mnuWritingTips = value;
				mnuWritingTips = _mnuWritingTips;
				if (mnuWritingTips != null)
				{
					mnuWritingTips.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("mnuHelp")]
		public virtual ToolStripMenuItem mnuHelp
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual System.Windows.Forms.Timer TimerWC
		{
			[CompilerGenerated]
			get
			{
				return _TimerWC;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = TimerWC_Tick;
				System.Windows.Forms.Timer timerWC = _TimerWC;
				if (timerWC != null)
				{
					timerWC.Tick -= value2;
				}
				_TimerWC = value;
				timerWC = _TimerWC;
				if (timerWC != null)
				{
					timerWC.Tick += value2;
				}
			}
		}

		public virtual System.Windows.Forms.Timer TimerBackup
		{
			[CompilerGenerated]
			get
			{
				return _TimerBackup;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = TimerBackup_Tick;
				System.Windows.Forms.Timer timerBackup = _TimerBackup;
				if (timerBackup != null)
				{
					timerBackup.Tick -= value2;
				}
				_TimerBackup = value;
				timerBackup = _TimerBackup;
				if (timerBackup != null)
				{
					timerBackup.Tick += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ImageList1")]
		public virtual ImageList ImageList1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual System.Windows.Forms.Timer TimerExit
		{
			[CompilerGenerated]
			get
			{
				return _TimerExit;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = TimerExit_Tick;
				System.Windows.Forms.Timer timerExit = _TimerExit;
				if (timerExit != null)
				{
					timerExit.Tick -= value2;
				}
				_TimerExit = value;
				timerExit = _TimerExit;
				if (timerExit != null)
				{
					timerExit.Tick += value2;
				}
			}
		}

		public virtual RichTextBox txtMain
		{
			[CompilerGenerated]
			get
			{
				return _txtMain;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = txtMain_Click;
				KeyPressEventHandler value3 = txtMain_KeyPress;
				EventHandler value4 = txtMain_TextChanged;
				EventHandler value5 = txtMain_DoubleClick;
				KeyEventHandler value6 = txtMain_KeyDown;
				KeyEventHandler value7 = txtMain_KeyUp;
				LinkClickedEventHandler value8 = txtMain_LinkClicked;
				RichTextBox txtMain = _txtMain;
				if (txtMain != null)
				{
					txtMain.Click -= value2;
					txtMain.KeyPress -= value3;
					txtMain.TextChanged -= value4;
					txtMain.DoubleClick -= value5;
					txtMain.KeyDown -= value6;
					txtMain.KeyUp -= value7;
					txtMain.LinkClicked -= value8;
				}
				_txtMain = value;
				txtMain = _txtMain;
				if (txtMain != null)
				{
					txtMain.Click += value2;
					txtMain.KeyPress += value3;
					txtMain.TextChanged += value4;
					txtMain.DoubleClick += value5;
					txtMain.KeyDown += value6;
					txtMain.KeyUp += value7;
					txtMain.LinkClicked += value8;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripFontbar")]
		internal virtual ToolStrip ToolStripFontbar
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("StatusStrip1")]
		internal virtual StatusStrip StatusStrip1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TableChapterSceneSelect")]
		internal virtual TableLayoutPanel TableChapterSceneSelect
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label1")]
		internal virtual Label Label1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label4")]
		internal virtual Label Label4
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ComboBox cmbChapter
		{
			[CompilerGenerated]
			get
			{
				return _cmbChapter;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmbChapter_SelectedIndexChanged;
				ComboBox cmbChapter = _cmbChapter;
				if (cmbChapter != null)
				{
					cmbChapter.SelectedIndexChanged -= value2;
				}
				_cmbChapter = value;
				cmbChapter = _cmbChapter;
				if (cmbChapter != null)
				{
					cmbChapter.SelectedIndexChanged += value2;
				}
			}
		}

		internal virtual ComboBox cmbScene
		{
			[CompilerGenerated]
			get
			{
				return _cmbScene;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmbScene_SelectedIndexChanged;
				ComboBox cmbScene = _cmbScene;
				if (cmbScene != null)
				{
					cmbScene.SelectedIndexChanged -= value2;
				}
				_cmbScene = value;
				cmbScene = _cmbScene;
				if (cmbScene != null)
				{
					cmbScene.SelectedIndexChanged += value2;
				}
			}
		}

		[field: AccessedThroughProperty("tssStatus")]
		internal virtual ToolStripStatusLabel tssStatus
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripStatusLabel tssSceneWordCount
		{
			[CompilerGenerated]
			get
			{
				return _tssSceneWordCount;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tssSceneWordCount_Click;
				ToolStripStatusLabel tssSceneWordCount = _tssSceneWordCount;
				if (tssSceneWordCount != null)
				{
					tssSceneWordCount.Click -= value2;
				}
				_tssSceneWordCount = value;
				tssSceneWordCount = _tssSceneWordCount;
				if (tssSceneWordCount != null)
				{
					tssSceneWordCount.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("tssChaptername")]
		internal virtual ToolStripStatusLabel tssChaptername
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripButton tsbBold
		{
			[CompilerGenerated]
			get
			{
				return _tsbBold;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsbBold_Click;
				ToolStripButton tsbBold = _tsbBold;
				if (tsbBold != null)
				{
					tsbBold.Click -= value2;
				}
				_tsbBold = value;
				tsbBold = _tsbBold;
				if (tsbBold != null)
				{
					tsbBold.Click += value2;
				}
			}
		}

		internal virtual ToolStripButton tsbItalic
		{
			[CompilerGenerated]
			get
			{
				return _tsbItalic;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsbItalic_Click;
				ToolStripButton tsbItalic = _tsbItalic;
				if (tsbItalic != null)
				{
					tsbItalic.Click -= value2;
				}
				_tsbItalic = value;
				tsbItalic = _tsbItalic;
				if (tsbItalic != null)
				{
					tsbItalic.Click += value2;
				}
			}
		}

		internal virtual ToolStripButton tsbUnderline
		{
			[CompilerGenerated]
			get
			{
				return _tsbUnderline;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsbUnderline_Click;
				ToolStripButton tsbUnderline = _tsbUnderline;
				if (tsbUnderline != null)
				{
					tsbUnderline.Click -= value2;
				}
				_tsbUnderline = value;
				tsbUnderline = _tsbUnderline;
				if (tsbUnderline != null)
				{
					tsbUnderline.Click += value2;
				}
			}
		}

		internal virtual ToolStripComboBox cmbFont
		{
			[CompilerGenerated]
			get
			{
				return _cmbFont;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmbFontChanged;
				EventHandler value3 = cmbFont_Click;
				ToolStripComboBox cmbFont = _cmbFont;
				if (cmbFont != null)
				{
					cmbFont.SelectedIndexChanged -= value2;
					cmbFont.Click -= value3;
				}
				_cmbFont = value;
				cmbFont = _cmbFont;
				if (cmbFont != null)
				{
					cmbFont.SelectedIndexChanged += value2;
					cmbFont.Click += value3;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator3")]
		internal virtual ToolStripSeparator ToolStripSeparator3
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripComboBox cmbFontSize
		{
			[CompilerGenerated]
			get
			{
				return _cmbFontSize;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmbFontSize_SelectedIndexChanged;
				EventHandler value3 = cmbFontSize_Click;
				ToolStripComboBox cmbFontSize = _cmbFontSize;
				if (cmbFontSize != null)
				{
					cmbFontSize.SelectedIndexChanged -= value2;
					cmbFontSize.Click -= value3;
				}
				_cmbFontSize = value;
				cmbFontSize = _cmbFontSize;
				if (cmbFontSize != null)
				{
					cmbFontSize.SelectedIndexChanged += value2;
					cmbFontSize.Click += value3;
				}
			}
		}

		public virtual ComboBox cmbStatus
		{
			[CompilerGenerated]
			get
			{
				return _cmbStatus;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmbStatus_SelectedIndexChanged;
				ComboBox cmbStatus = _cmbStatus;
				if (cmbStatus != null)
				{
					cmbStatus.SelectedIndexChanged -= value2;
				}
				_cmbStatus = value;
				cmbStatus = _cmbStatus;
				if (cmbStatus != null)
				{
					cmbStatus.SelectedIndexChanged += value2;
				}
			}
		}

		public virtual ComboBox cmbField0
		{
			[CompilerGenerated]
			get
			{
				return _cmbField0;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmbField_SelectedIndexChanged;
				ComboBox cmbField = _cmbField0;
				if (cmbField != null)
				{
					cmbField.SelectedIndexChanged -= value2;
				}
				_cmbField0 = value;
				cmbField = _cmbField0;
				if (cmbField != null)
				{
					cmbField.SelectedIndexChanged += value2;
				}
			}
		}

		[field: AccessedThroughProperty("lblField1")]
		public virtual Label lblField1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ComboBox cmbField2
		{
			[CompilerGenerated]
			get
			{
				return _cmbField2;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmbField_SelectedIndexChanged;
				ComboBox cmbField = _cmbField2;
				if (cmbField != null)
				{
					cmbField.SelectedIndexChanged -= value2;
				}
				_cmbField2 = value;
				cmbField = _cmbField2;
				if (cmbField != null)
				{
					cmbField.SelectedIndexChanged += value2;
				}
			}
		}

		public virtual ComboBox cmbField3
		{
			[CompilerGenerated]
			get
			{
				return _cmbField3;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmbField_SelectedIndexChanged;
				ComboBox cmbField = _cmbField3;
				if (cmbField != null)
				{
					cmbField.SelectedIndexChanged -= value2;
				}
				_cmbField3 = value;
				cmbField = _cmbField3;
				if (cmbField != null)
				{
					cmbField.SelectedIndexChanged += value2;
				}
			}
		}

		[field: AccessedThroughProperty("lblField0")]
		public virtual Label lblField0
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ComboBox cmbField1
		{
			[CompilerGenerated]
			get
			{
				return _cmbField1;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmbField_SelectedIndexChanged;
				ComboBox cmbField = _cmbField1;
				if (cmbField != null)
				{
					cmbField.SelectedIndexChanged -= value2;
				}
				_cmbField1 = value;
				cmbField = _cmbField1;
				if (cmbField != null)
				{
					cmbField.SelectedIndexChanged += value2;
				}
			}
		}

		[field: AccessedThroughProperty("lblField3")]
		public virtual Label lblField3
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("lblField2")]
		public virtual Label lblField2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("fraDHM")]
		public virtual GroupBox fraDHM
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("cmbHour")]
		public virtual ComboBox cmbHour
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtDay")]
		public virtual TextBox txtDay
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("cmbMinute")]
		public virtual ComboBox cmbMinute
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("_Label7_0")]
		public virtual Label _Label7_0
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("_Label7_1")]
		public virtual Label _Label7_1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("_Label7_2")]
		public virtual Label _Label7_2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("fraLasts")]
		public virtual GroupBox fraLasts
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("cmbLastsHours")]
		public virtual ComboBox cmbLastsHours
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtLastsDays")]
		public virtual TextBox txtLastsDays
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("cmbLastsMinutes")]
		public virtual ComboBox cmbLastsMinutes
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("_Label7_5")]
		public virtual Label _Label7_5
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("_Label7_4")]
		public virtual Label _Label7_4
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("_Label7_3")]
		public virtual Label _Label7_3
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ComboBox cmbViewpoint
		{
			[CompilerGenerated]
			get
			{
				return _cmbViewpoint;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmbViewpoint_SelectedIndexChanged;
				KeyEventHandler value3 = cmbViewPoint_KeyDown;
				ComboBox cmbViewpoint = _cmbViewpoint;
				if (cmbViewpoint != null)
				{
					cmbViewpoint.SelectedIndexChanged -= value2;
					cmbViewpoint.KeyDown -= value3;
				}
				_cmbViewpoint = value;
				cmbViewpoint = _cmbViewpoint;
				if (cmbViewpoint != null)
				{
					cmbViewpoint.SelectedIndexChanged += value2;
					cmbViewpoint.KeyDown += value3;
				}
			}
		}

		public virtual Button cmdAddChar
		{
			[CompilerGenerated]
			get
			{
				return _cmdAddChar;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdAddChar_Click;
				Button cmdAddChar = _cmdAddChar;
				if (cmdAddChar != null)
				{
					cmdAddChar.Click -= value2;
				}
				_cmdAddChar = value;
				cmdAddChar = _cmdAddChar;
				if (cmdAddChar != null)
				{
					cmdAddChar.Click += value2;
				}
			}
		}

		public virtual Button cmdEditChar
		{
			[CompilerGenerated]
			get
			{
				return _cmdEditChar;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdEditChar_Click;
				Button cmdEditChar = _cmdEditChar;
				if (cmdEditChar != null)
				{
					cmdEditChar.Click -= value2;
				}
				_cmdEditChar = value;
				cmdEditChar = _cmdEditChar;
				if (cmdEditChar != null)
				{
					cmdEditChar.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("TableLayoutPanel3")]
		internal virtual TableLayoutPanel TableLayoutPanel3
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("lblGoal")]
		public virtual Label lblGoal
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual TextBox txtOutcome
		{
			[CompilerGenerated]
			get
			{
				return _txtOutcome;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				KeyEventHandler value2 = txtOutcome_KeyDown;
				TextBox txtOutcome = _txtOutcome;
				if (txtOutcome != null)
				{
					txtOutcome.KeyDown -= value2;
				}
				_txtOutcome = value;
				txtOutcome = _txtOutcome;
				if (txtOutcome != null)
				{
					txtOutcome.KeyDown += value2;
				}
			}
		}

		public virtual TextBox txtConflict
		{
			[CompilerGenerated]
			get
			{
				return _txtConflict;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				KeyEventHandler value2 = txtConflict_KeyDown;
				TextBox txtConflict = _txtConflict;
				if (txtConflict != null)
				{
					txtConflict.KeyDown -= value2;
				}
				_txtConflict = value;
				txtConflict = _txtConflict;
				if (txtConflict != null)
				{
					txtConflict.KeyDown += value2;
				}
			}
		}

		public virtual TextBox txtGoal
		{
			[CompilerGenerated]
			get
			{
				return _txtGoal;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				KeyEventHandler value2 = txtGoal_KeyDown;
				TextBox txtGoal = _txtGoal;
				if (txtGoal != null)
				{
					txtGoal.KeyDown -= value2;
				}
				_txtGoal = value;
				txtGoal = _txtGoal;
				if (txtGoal != null)
				{
					txtGoal.KeyDown += value2;
				}
			}
		}

		[field: AccessedThroughProperty("lblConflict")]
		public virtual Label lblConflict
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("lblOutcome")]
		public virtual Label lblOutcome
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TableLayoutPanel4")]
		internal virtual TableLayoutPanel TableLayoutPanel4
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ListView ListCharUsed
		{
			[CompilerGenerated]
			get
			{
				return _ListCharUsed;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ListCharUsed_DoubleClick;
				DragEventHandler value3 = ListCharUsed_DragDrop;
				DragEventHandler value4 = ListCharUsed_DragOver;
				ItemDragEventHandler value5 = ListCharUsed_ItemDrag;
				EventHandler value6 = ListCharPresent_SelectedIndexChanged;
				ListView listCharUsed = _ListCharUsed;
				if (listCharUsed != null)
				{
					listCharUsed.DoubleClick -= value2;
					listCharUsed.DragDrop -= value3;
					listCharUsed.DragOver -= value4;
					listCharUsed.ItemDrag -= value5;
					listCharUsed.SelectedIndexChanged -= value6;
				}
				_ListCharUsed = value;
				listCharUsed = _ListCharUsed;
				if (listCharUsed != null)
				{
					listCharUsed.DoubleClick += value2;
					listCharUsed.DragDrop += value3;
					listCharUsed.DragOver += value4;
					listCharUsed.ItemDrag += value5;
					listCharUsed.SelectedIndexChanged += value6;
				}
			}
		}

		[field: AccessedThroughProperty("__ListChar_0_ColumnHeader_1")]
		public virtual ColumnHeader __ListChar_0_ColumnHeader_1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("__ListChar_0_ColumnHeader_2")]
		public virtual ColumnHeader __ListChar_0_ColumnHeader_2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ContextMenuStrip ctxListsRC
		{
			[CompilerGenerated]
			get
			{
				return _ctxListsRC;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				CancelEventHandler value2 = ctxListsRC_Opening;
				ContextMenuStrip ctxListsRC = _ctxListsRC;
				if (ctxListsRC != null)
				{
					ctxListsRC.Opening -= value2;
				}
				_ctxListsRC = value;
				ctxListsRC = _ctxListsRC;
				if (ctxListsRC != null)
				{
					ctxListsRC.Opening += value2;
				}
			}
		}

		public virtual ToolStripMenuItem tsmEditListItem
		{
			[CompilerGenerated]
			get
			{
				return _tsmEditListItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsmEditListItem_Click;
				ToolStripMenuItem tsmEditListItem = _tsmEditListItem;
				if (tsmEditListItem != null)
				{
					tsmEditListItem.Click -= value2;
				}
				_tsmEditListItem = value;
				tsmEditListItem = _tsmEditListItem;
				if (tsmEditListItem != null)
				{
					tsmEditListItem.Click += value2;
				}
			}
		}

		internal virtual ContextMenuStrip ctxRC
		{
			[CompilerGenerated]
			get
			{
				return _ctxRC;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				ToolStripDropDownClosedEventHandler value2 = ctxRC_Closed;
				CancelEventHandler value3 = ctxRC_Opening;
				ContextMenuStrip ctxRC = _ctxRC;
				if (ctxRC != null)
				{
					ctxRC.Closed -= value2;
					ctxRC.Opening -= value3;
				}
				_ctxRC = value;
				ctxRC = _ctxRC;
				if (ctxRC != null)
				{
					ctxRC.Closed += value2;
					ctxRC.Opening += value3;
				}
			}
		}

		public virtual ToolStripMenuItem ctxCut
		{
			[CompilerGenerated]
			get
			{
				return _ctxCut;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxCut_Click;
				ToolStripMenuItem ctxCut = _ctxCut;
				if (ctxCut != null)
				{
					ctxCut.Click -= value2;
				}
				_ctxCut = value;
				ctxCut = _ctxCut;
				if (ctxCut != null)
				{
					ctxCut.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem ctxCopy
		{
			[CompilerGenerated]
			get
			{
				return _ctxCopy;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxCopy_Click;
				ToolStripMenuItem ctxCopy = _ctxCopy;
				if (ctxCopy != null)
				{
					ctxCopy.Click -= value2;
				}
				_ctxCopy = value;
				ctxCopy = _ctxCopy;
				if (ctxCopy != null)
				{
					ctxCopy.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem ctxPaste
		{
			[CompilerGenerated]
			get
			{
				return _ctxPaste;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxPaste_Click;
				ToolStripMenuItem ctxPaste = _ctxPaste;
				if (ctxPaste != null)
				{
					ctxPaste.Click -= value2;
				}
				_ctxPaste = value;
				ctxPaste = _ctxPaste;
				if (ctxPaste != null)
				{
					ctxPaste.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator5")]
		public virtual ToolStripSeparator ToolStripSeparator5
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem ctxCutAsTitle
		{
			[CompilerGenerated]
			get
			{
				return _ctxCutAsTitle;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxCutAsTitle_Click;
				ToolStripMenuItem ctxCutAsTitle = _ctxCutAsTitle;
				if (ctxCutAsTitle != null)
				{
					ctxCutAsTitle.Click -= value2;
				}
				_ctxCutAsTitle = value;
				ctxCutAsTitle = _ctxCutAsTitle;
				if (ctxCutAsTitle != null)
				{
					ctxCutAsTitle.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem ctxCutAsDesc
		{
			[CompilerGenerated]
			get
			{
				return _ctxCutAsDesc;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxCutAsDesc_Click;
				ToolStripMenuItem ctxCutAsDesc = _ctxCutAsDesc;
				if (ctxCutAsDesc != null)
				{
					ctxCutAsDesc.Click -= value2;
				}
				_ctxCutAsDesc = value;
				ctxCutAsDesc = _ctxCutAsDesc;
				if (ctxCutAsDesc != null)
				{
					ctxCutAsDesc.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("tsbSepDict")]
		public virtual ToolStripSeparator tsbSepDict
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem ctxAddToDict
		{
			[CompilerGenerated]
			get
			{
				return _ctxAddToDict;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxAddToDict_Click;
				ToolStripMenuItem ctxAddToDict = _ctxAddToDict;
				if (ctxAddToDict != null)
				{
					ctxAddToDict.Click -= value2;
				}
				_ctxAddToDict = value;
				ctxAddToDict = _ctxAddToDict;
				if (ctxAddToDict != null)
				{
					ctxAddToDict.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator7")]
		public virtual ToolStripSeparator ToolStripSeparator7
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem ctxDictLookup
		{
			[CompilerGenerated]
			get
			{
				return _ctxDictLookup;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxDictLookup_Click;
				ToolStripMenuItem ctxDictLookup = _ctxDictLookup;
				if (ctxDictLookup != null)
				{
					ctxDictLookup.Click -= value2;
				}
				_ctxDictLookup = value;
				ctxDictLookup = _ctxDictLookup;
				if (ctxDictLookup != null)
				{
					ctxDictLookup.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem ctxThesLookup
		{
			[CompilerGenerated]
			get
			{
				return _ctxThesLookup;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxThesLookup_Click;
				ToolStripMenuItem ctxThesLookup = _ctxThesLookup;
				if (ctxThesLookup != null)
				{
					ctxThesLookup.Click -= value2;
				}
				_ctxThesLookup = value;
				ctxThesLookup = _ctxThesLookup;
				if (ctxThesLookup != null)
				{
					ctxThesLookup.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator8")]
		public virtual ToolStripSeparator ToolStripSeparator8
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem ctxFGColour
		{
			[CompilerGenerated]
			get
			{
				return _ctxFGColour;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxFGColour_Click;
				ToolStripMenuItem ctxFGColour = _ctxFGColour;
				if (ctxFGColour != null)
				{
					ctxFGColour.Click -= value2;
				}
				_ctxFGColour = value;
				ctxFGColour = _ctxFGColour;
				if (ctxFGColour != null)
				{
					ctxFGColour.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem ctxBGColour
		{
			[CompilerGenerated]
			get
			{
				return _ctxBGColour;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxBGColour_Click;
				ToolStripMenuItem ctxBGColour = _ctxBGColour;
				if (ctxBGColour != null)
				{
					ctxBGColour.Click -= value2;
				}
				_ctxBGColour = value;
				ctxBGColour = _ctxBGColour;
				if (ctxBGColour != null)
				{
					ctxBGColour.Click += value2;
				}
			}
		}

		public virtual ListView ListCharAll
		{
			[CompilerGenerated]
			get
			{
				return _ListCharAll;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ListCharAll_DoubleClick;
				DragEventHandler value3 = ListCharAll_DragDrop;
				DragEventHandler value4 = ListCharAll_DragOver;
				ItemDragEventHandler value5 = ListCharAll_ItemDrag;
				MouseEventHandler value6 = ListCharAll_MouseClick;
				EventHandler value7 = ListCharAll_SelectedIndexChanged;
				ListView listCharAll = _ListCharAll;
				if (listCharAll != null)
				{
					listCharAll.DoubleClick -= value2;
					listCharAll.DragDrop -= value3;
					listCharAll.DragOver -= value4;
					listCharAll.ItemDrag -= value5;
					listCharAll.MouseClick -= value6;
					listCharAll.SelectedIndexChanged -= value7;
				}
				_ListCharAll = value;
				listCharAll = _ListCharAll;
				if (listCharAll != null)
				{
					listCharAll.DoubleClick += value2;
					listCharAll.DragDrop += value3;
					listCharAll.DragOver += value4;
					listCharAll.ItemDrag += value5;
					listCharAll.MouseClick += value6;
					listCharAll.SelectedIndexChanged += value7;
				}
			}
		}

		[field: AccessedThroughProperty("__ListChar_1_ColumnHeader_1")]
		public virtual ColumnHeader __ListChar_1_ColumnHeader_1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("__ListChar_1_ColumnHeader_2")]
		public virtual ColumnHeader __ListChar_1_ColumnHeader_2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual Button cmdPrev
		{
			[CompilerGenerated]
			get
			{
				return _cmdPrev;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdPrev_Click;
				Button cmdPrev = _cmdPrev;
				if (cmdPrev != null)
				{
					cmdPrev.Click -= value2;
				}
				_cmdPrev = value;
				cmdPrev = _cmdPrev;
				if (cmdPrev != null)
				{
					cmdPrev.Click += value2;
				}
			}
		}

		internal virtual Button cmdSaveAndExit
		{
			[CompilerGenerated]
			get
			{
				return _cmdSaveAndExit;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdSaveAndExit_Click;
				Button cmdSaveAndExit = _cmdSaveAndExit;
				if (cmdSaveAndExit != null)
				{
					cmdSaveAndExit.Click -= value2;
				}
				_cmdSaveAndExit = value;
				cmdSaveAndExit = _cmdSaveAndExit;
				if (cmdSaveAndExit != null)
				{
					cmdSaveAndExit.Click += value2;
				}
			}
		}

		internal virtual Button cmdSave
		{
			[CompilerGenerated]
			get
			{
				return _cmdSave;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdSave_Click;
				Button cmdSave = _cmdSave;
				if (cmdSave != null)
				{
					cmdSave.Click -= value2;
				}
				_cmdSave = value;
				cmdSave = _cmdSave;
				if (cmdSave != null)
				{
					cmdSave.Click += value2;
				}
			}
		}

		internal virtual Button cmdNext
		{
			[CompilerGenerated]
			get
			{
				return _cmdNext;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdNext_Click;
				Button cmdNext = _cmdNext;
				if (cmdNext != null)
				{
					cmdNext.Click -= value2;
				}
				_cmdNext = value;
				cmdNext = _cmdNext;
				if (cmdNext != null)
				{
					cmdNext.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("TabControl2")]
		internal virtual TabControl TabControl2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TabContent")]
		internal virtual TabPage TabContent
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual TabPage TabCharacters
		{
			[CompilerGenerated]
			get
			{
				return _TabCharacters;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = TabCharacters_Click;
				TabPage tabCharacters = _TabCharacters;
				if (tabCharacters != null)
				{
					tabCharacters.Click -= value2;
				}
				_TabCharacters = value;
				tabCharacters = _TabCharacters;
				if (tabCharacters != null)
				{
					tabCharacters.Click += value2;
				}
			}
		}

		internal virtual TabPage TabDetails
		{
			[CompilerGenerated]
			get
			{
				return _TabDetails;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = TabDetails_Click;
				TabPage tabDetails = _TabDetails;
				if (tabDetails != null)
				{
					tabDetails.Click -= value2;
				}
				_TabDetails = value;
				tabDetails = _TabDetails;
				if (tabDetails != null)
				{
					tabDetails.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("Label5")]
		internal virtual Label Label5
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual Label lblFullName
		{
			[CompilerGenerated]
			get
			{
				return _lblFullName;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = lblFullName_Click;
				Label lblFullName = _lblFullName;
				if (lblFullName != null)
				{
					lblFullName.Click -= value2;
				}
				_lblFullName = value;
				lblFullName = _lblFullName;
				if (lblFullName != null)
				{
					lblFullName.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("lblViewpointChar")]
		internal virtual Label lblViewpointChar
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label7")]
		internal virtual Label Label7
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label6")]
		internal virtual Label Label6
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Panel2")]
		internal virtual Panel Panel2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TableLayoutPanel5")]
		internal virtual TableLayoutPanel TableLayoutPanel5
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual RichTextBox txtCharNotes
		{
			[CompilerGenerated]
			get
			{
				return _txtCharNotes;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = txtCharNotes_DoubleClick;
				RichTextBox txtCharNotes = _txtCharNotes;
				if (txtCharNotes != null)
				{
					txtCharNotes.DoubleClick -= value2;
				}
				_txtCharNotes = value;
				txtCharNotes = _txtCharNotes;
				if (txtCharNotes != null)
				{
					txtCharNotes.DoubleClick += value2;
				}
			}
		}

		public virtual RichTextBox txtCharDesc
		{
			[CompilerGenerated]
			get
			{
				return _txtCharDesc;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = txtCharDesc_DoubleClick;
				EventHandler value3 = txtCharDesc_TextChanged;
				RichTextBox txtCharDesc = _txtCharDesc;
				if (txtCharDesc != null)
				{
					txtCharDesc.DoubleClick -= value2;
					txtCharDesc.TextChanged -= value3;
				}
				_txtCharDesc = value;
				txtCharDesc = _txtCharDesc;
				if (txtCharDesc != null)
				{
					txtCharDesc.DoubleClick += value2;
					txtCharDesc.TextChanged += value3;
				}
			}
		}

		[field: AccessedThroughProperty("tabImage")]
		internal virtual TabPage tabImage
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Picture1")]
		public virtual PictureBox Picture1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtImageFile")]
		public virtual TextBox txtImageFile
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual Button cmdSelectImage
		{
			[CompilerGenerated]
			get
			{
				return _cmdSelectImage;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdSelectImage_Click;
				Button cmdSelectImage = _cmdSelectImage;
				if (cmdSelectImage != null)
				{
					cmdSelectImage.Click -= value2;
				}
				_cmdSelectImage = value;
				cmdSelectImage = _cmdSelectImage;
				if (cmdSelectImage != null)
				{
					cmdSelectImage.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("Image2")]
		public virtual PictureBox Image2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("lblImageData")]
		public virtual Label lblImageData
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator1")]
		internal virtual ToolStripSeparator ToolStripSeparator1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem SetFontColourToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _SetFontColourToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxFGColour_Click;
				ToolStripMenuItem setFontColourToolStripMenuItem = _SetFontColourToolStripMenuItem;
				if (setFontColourToolStripMenuItem != null)
				{
					setFontColourToolStripMenuItem.Click -= value2;
				}
				_SetFontColourToolStripMenuItem = value;
				setFontColourToolStripMenuItem = _SetFontColourToolStripMenuItem;
				if (setFontColourToolStripMenuItem != null)
				{
					setFontColourToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem SetBackgroundColourToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _SetBackgroundColourToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxBGColour_Click;
				ToolStripMenuItem setBackgroundColourToolStripMenuItem = _SetBackgroundColourToolStripMenuItem;
				if (setBackgroundColourToolStripMenuItem != null)
				{
					setBackgroundColourToolStripMenuItem.Click -= value2;
				}
				_SetBackgroundColourToolStripMenuItem = value;
				setBackgroundColourToolStripMenuItem = _SetBackgroundColourToolStripMenuItem;
				if (setBackgroundColourToolStripMenuItem != null)
				{
					setBackgroundColourToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ColorDialog1")]
		internal virtual ColorDialog ColorDialog1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator2")]
		internal virtual ToolStripSeparator ToolStripSeparator2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem OpenDictionaryFolderToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _OpenDictionaryFolderToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = OpenDictionaryFolderToolStripMenuItem_Click;
				ToolStripMenuItem openDictionaryFolderToolStripMenuItem = _OpenDictionaryFolderToolStripMenuItem;
				if (openDictionaryFolderToolStripMenuItem != null)
				{
					openDictionaryFolderToolStripMenuItem.Click -= value2;
				}
				_OpenDictionaryFolderToolStripMenuItem = value;
				openDictionaryFolderToolStripMenuItem = _OpenDictionaryFolderToolStripMenuItem;
				if (openDictionaryFolderToolStripMenuItem != null)
				{
					openDictionaryFolderToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem SetParagraphIndentToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _SetParagraphIndentToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = SetParagraphIndentToolStripMenuItem_Click;
				ToolStripMenuItem setParagraphIndentToolStripMenuItem = _SetParagraphIndentToolStripMenuItem;
				if (setParagraphIndentToolStripMenuItem != null)
				{
					setParagraphIndentToolStripMenuItem.Click -= value2;
				}
				_SetParagraphIndentToolStripMenuItem = value;
				setParagraphIndentToolStripMenuItem = _SetParagraphIndentToolStripMenuItem;
				if (setParagraphIndentToolStripMenuItem != null)
				{
					setParagraphIndentToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator4")]
		internal virtual ToolStripSeparator ToolStripSeparator4
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem UseRightctrlForDBCSEntryToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _UseRightctrlForDBCSEntryToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = UseRightctrlForDBCSEntryToolStripMenuItem_Click;
				ToolStripMenuItem useRightctrlForDBCSEntryToolStripMenuItem = _UseRightctrlForDBCSEntryToolStripMenuItem;
				if (useRightctrlForDBCSEntryToolStripMenuItem != null)
				{
					useRightctrlForDBCSEntryToolStripMenuItem.Click -= value2;
				}
				_UseRightctrlForDBCSEntryToolStripMenuItem = value;
				useRightctrlForDBCSEntryToolStripMenuItem = _UseRightctrlForDBCSEntryToolStripMenuItem;
				if (useRightctrlForDBCSEntryToolStripMenuItem != null)
				{
					useRightctrlForDBCSEntryToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("Splitter1")]
		internal virtual Splitter Splitter1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator6")]
		internal virtual ToolStripSeparator ToolStripSeparator6
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem FullScreenEditorToolStripMenu
		{
			[CompilerGenerated]
			get
			{
				return _FullScreenEditorToolStripMenu;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = MaximiseMinimiseTextEditorToolStripMenuItem_Click;
				ToolStripMenuItem fullScreenEditorToolStripMenu = _FullScreenEditorToolStripMenu;
				if (fullScreenEditorToolStripMenu != null)
				{
					fullScreenEditorToolStripMenu.Click -= value2;
				}
				_FullScreenEditorToolStripMenu = value;
				fullScreenEditorToolStripMenu = _FullScreenEditorToolStripMenu;
				if (fullScreenEditorToolStripMenu != null)
				{
					fullScreenEditorToolStripMenu.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("SettingsToolStripMenuItem")]
		internal virtual ToolStripMenuItem SettingsToolStripMenuItem
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator9")]
		internal virtual ToolStripSeparator ToolStripSeparator9
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem HideFontBarToolStripMenuItem1
		{
			[CompilerGenerated]
			get
			{
				return _HideFontBarToolStripMenuItem1;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = HideFontBarToolStripMenuItem1_Click;
				ToolStripMenuItem hideFontBarToolStripMenuItem = _HideFontBarToolStripMenuItem1;
				if (hideFontBarToolStripMenuItem != null)
				{
					hideFontBarToolStripMenuItem.Click -= value2;
				}
				_HideFontBarToolStripMenuItem1 = value;
				hideFontBarToolStripMenuItem = _HideFontBarToolStripMenuItem1;
				if (hideFontBarToolStripMenuItem != null)
				{
					hideFontBarToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem FullScreenEditorWithMarginsToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _FullScreenEditorWithMarginsToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = FullScreenEditorWithMarginsToolStripMenuItem_Click;
				ToolStripMenuItem fullScreenEditorWithMarginsToolStripMenuItem = _FullScreenEditorWithMarginsToolStripMenuItem;
				if (fullScreenEditorWithMarginsToolStripMenuItem != null)
				{
					fullScreenEditorWithMarginsToolStripMenuItem.Click -= value2;
				}
				_FullScreenEditorWithMarginsToolStripMenuItem = value;
				fullScreenEditorWithMarginsToolStripMenuItem = _FullScreenEditorWithMarginsToolStripMenuItem;
				if (fullScreenEditorWithMarginsToolStripMenuItem != null)
				{
					fullScreenEditorWithMarginsToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual Label lblSelectedCharID
		{
			[CompilerGenerated]
			get
			{
				return _lblSelectedCharID;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = lblAltNames_Click;
				Label lblSelectedCharID = _lblSelectedCharID;
				if (lblSelectedCharID != null)
				{
					lblSelectedCharID.Click -= value2;
				}
				_lblSelectedCharID = value;
				lblSelectedCharID = _lblSelectedCharID;
				if (lblSelectedCharID != null)
				{
					lblSelectedCharID.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ManualToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ManualToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ManualToolStripMenuItem_Click;
				ToolStripMenuItem manualToolStripMenuItem = _ManualToolStripMenuItem;
				if (manualToolStripMenuItem != null)
				{
					manualToolStripMenuItem.Click -= value2;
				}
				_ManualToolStripMenuItem = value;
				manualToolStripMenuItem = _ManualToolStripMenuItem;
				if (manualToolStripMenuItem != null)
				{
					manualToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator10")]
		internal virtual ToolStripSeparator ToolStripSeparator10
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripButton tsbReadAloud
		{
			[CompilerGenerated]
			get
			{
				return _tsbReadAloud;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsbReadAloud_Click;
				ToolStripButton tsbReadAloud = _tsbReadAloud;
				if (tsbReadAloud != null)
				{
					tsbReadAloud.Click -= value2;
				}
				_tsbReadAloud = value;
				tsbReadAloud = _tsbReadAloud;
				if (tsbReadAloud != null)
				{
					tsbReadAloud.Click += value2;
				}
			}
		}

		internal virtual ToolStripButton tsbStopReading
		{
			[CompilerGenerated]
			get
			{
				return _tsbStopReading;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsbStopReading_Click;
				ToolStripButton tsbStopReading = _tsbStopReading;
				if (tsbStopReading != null)
				{
					tsbStopReading.Click -= value2;
				}
				_tsbStopReading = value;
				tsbStopReading = _tsbStopReading;
				if (tsbStopReading != null)
				{
					tsbStopReading.Click += value2;
				}
			}
		}

		internal virtual ToolStripButton tsbSetupSpeech
		{
			[CompilerGenerated]
			get
			{
				return _tsbSetupSpeech;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsbSetupSpeech_Click;
				ToolStripButton tsbSetupSpeech = _tsbSetupSpeech;
				if (tsbSetupSpeech != null)
				{
					tsbSetupSpeech.Click -= value2;
				}
				_tsbSetupSpeech = value;
				tsbSetupSpeech = _tsbSetupSpeech;
				if (tsbSetupSpeech != null)
				{
					tsbSetupSpeech.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("fraSpecificDateTime")]
		public virtual GroupBox fraSpecificDateTime
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual Label lblSpecificTime
		{
			[CompilerGenerated]
			get
			{
				return _lblSpecificTime;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = lblSpecificTime_Click;
				Label lblSpecificTime = _lblSpecificTime;
				if (lblSpecificTime != null)
				{
					lblSpecificTime.Click -= value2;
				}
				_lblSpecificTime = value;
				lblSpecificTime = _lblSpecificTime;
				if (lblSpecificTime != null)
				{
					lblSpecificTime.Click += value2;
				}
			}
		}

		internal virtual Label lblSpecificDate
		{
			[CompilerGenerated]
			get
			{
				return _lblSpecificDate;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = lblSpecificDate_Click;
				Label lblSpecificDate = _lblSpecificDate;
				if (lblSpecificDate != null)
				{
					lblSpecificDate.Click -= value2;
				}
				_lblSpecificDate = value;
				lblSpecificDate = _lblSpecificDate;
				if (lblSpecificDate != null)
				{
					lblSpecificDate.Click += value2;
				}
			}
		}

		internal virtual Button cmdSwitchDateMode1
		{
			[CompilerGenerated]
			get
			{
				return _cmdSwitchDateMode1;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdSwitchDateMode1_Click;
				Button cmdSwitchDateMode = _cmdSwitchDateMode1;
				if (cmdSwitchDateMode != null)
				{
					cmdSwitchDateMode.Click -= value2;
				}
				_cmdSwitchDateMode1 = value;
				cmdSwitchDateMode = _cmdSwitchDateMode1;
				if (cmdSwitchDateMode != null)
				{
					cmdSwitchDateMode.Click += value2;
				}
			}
		}

		internal virtual Button cmdSwitchDateMode2
		{
			[CompilerGenerated]
			get
			{
				return _cmdSwitchDateMode2;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdSwitchDateMode2_Click;
				Button cmdSwitchDateMode = _cmdSwitchDateMode2;
				if (cmdSwitchDateMode != null)
				{
					cmdSwitchDateMode.Click -= value2;
				}
				_cmdSwitchDateMode2 = value;
				cmdSwitchDateMode = _cmdSwitchDateMode2;
				if (cmdSwitchDateMode != null)
				{
					cmdSwitchDateMode.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("Label11")]
		internal virtual Label Label11
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label10")]
		internal virtual Label Label10
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem ClearImageToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ClearImageToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ClearImageToolStripMenuItem_Click;
				ToolStripMenuItem clearImageToolStripMenuItem = _ClearImageToolStripMenuItem;
				if (clearImageToolStripMenuItem != null)
				{
					clearImageToolStripMenuItem.Click -= value2;
				}
				_ClearImageToolStripMenuItem = value;
				clearImageToolStripMenuItem = _ClearImageToolStripMenuItem;
				if (clearImageToolStripMenuItem != null)
				{
					clearImageToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem AllowTABInEditorWindowToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _AllowTABInEditorWindowToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = AllowTABInEditorWindowToolStripMenuItem_Click;
				ToolStripMenuItem allowTABInEditorWindowToolStripMenuItem = _AllowTABInEditorWindowToolStripMenuItem;
				if (allowTABInEditorWindowToolStripMenuItem != null)
				{
					allowTABInEditorWindowToolStripMenuItem.Click -= value2;
				}
				_AllowTABInEditorWindowToolStripMenuItem = value;
				allowTABInEditorWindowToolStripMenuItem = _AllowTABInEditorWindowToolStripMenuItem;
				if (allowTABInEditorWindowToolStripMenuItem != null)
				{
					allowTABInEditorWindowToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator11")]
		internal virtual ToolStripSeparator ToolStripSeparator11
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem ClearSelectedHighlightToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ClearSelectedHighlightToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ClearSelectedHighlightToolStripMenuItem_Click;
				ToolStripMenuItem clearSelectedHighlightToolStripMenuItem = _ClearSelectedHighlightToolStripMenuItem;
				if (clearSelectedHighlightToolStripMenuItem != null)
				{
					clearSelectedHighlightToolStripMenuItem.Click -= value2;
				}
				_ClearSelectedHighlightToolStripMenuItem = value;
				clearSelectedHighlightToolStripMenuItem = _ClearSelectedHighlightToolStripMenuItem;
				if (clearSelectedHighlightToolStripMenuItem != null)
				{
					clearSelectedHighlightToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("Label12")]
		internal virtual Label Label12
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtTags")]
		internal virtual TextBox txtTags
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TabNotes")]
		internal virtual TabPage TabNotes
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual RichTextBox txtNotes
		{
			[CompilerGenerated]
			get
			{
				return _txtNotes;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				LinkClickedEventHandler value2 = txtNotes_LinkClicked;
				EventHandler value3 = txtNotes_TextChanged;
				RichTextBox txtNotes = _txtNotes;
				if (txtNotes != null)
				{
					txtNotes.LinkClicked -= value2;
					txtNotes.TextChanged -= value3;
				}
				_txtNotes = value;
				txtNotes = _txtNotes;
				if (txtNotes != null)
				{
					txtNotes.LinkClicked += value2;
					txtNotes.TextChanged += value3;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator12")]
		internal virtual ToolStripSeparator ToolStripSeparator12
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("tsmHighlight")]
		internal virtual ToolStripDropDownButton tsmHighlight
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem ClearSelectedHighlightToolStripMenuItem1
		{
			[CompilerGenerated]
			get
			{
				return _ClearSelectedHighlightToolStripMenuItem1;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ClearSelectedHighlightToolStripMenuItem1_Click;
				ToolStripMenuItem clearSelectedHighlightToolStripMenuItem = _ClearSelectedHighlightToolStripMenuItem1;
				if (clearSelectedHighlightToolStripMenuItem != null)
				{
					clearSelectedHighlightToolStripMenuItem.Click -= value2;
				}
				_ClearSelectedHighlightToolStripMenuItem1 = value;
				clearSelectedHighlightToolStripMenuItem = _ClearSelectedHighlightToolStripMenuItem1;
				if (clearSelectedHighlightToolStripMenuItem != null)
				{
					clearSelectedHighlightToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator13")]
		internal virtual ToolStripSeparator ToolStripSeparator13
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TableLayoutPanel6")]
		internal virtual TableLayoutPanel TableLayoutPanel6
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual System.Windows.Forms.Timer TimerFillFontCombo
		{
			[CompilerGenerated]
			get
			{
				return _TimerFillFontCombo;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = TimerFillFontCombo_Tick;
				System.Windows.Forms.Timer timerFillFontCombo = _TimerFillFontCombo;
				if (timerFillFontCombo != null)
				{
					timerFillFontCombo.Tick -= value2;
				}
				_TimerFillFontCombo = value;
				timerFillFontCombo = _TimerFillFontCombo;
				if (timerFillFontCombo != null)
				{
					timerFillFontCombo.Tick += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem UndoCtrlZToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _UndoCtrlZToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = UndoCtrlZToolStripMenuItem_Click;
				ToolStripMenuItem undoCtrlZToolStripMenuItem = _UndoCtrlZToolStripMenuItem;
				if (undoCtrlZToolStripMenuItem != null)
				{
					undoCtrlZToolStripMenuItem.Click -= value2;
				}
				_UndoCtrlZToolStripMenuItem = value;
				undoCtrlZToolStripMenuItem = _UndoCtrlZToolStripMenuItem;
				if (undoCtrlZToolStripMenuItem != null)
				{
					undoCtrlZToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem RedoCtrlYToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _RedoCtrlYToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = RedoCtrlYToolStripMenuItem_Click;
				ToolStripMenuItem redoCtrlYToolStripMenuItem = _RedoCtrlYToolStripMenuItem;
				if (redoCtrlYToolStripMenuItem != null)
				{
					redoCtrlYToolStripMenuItem.Click -= value2;
				}
				_RedoCtrlYToolStripMenuItem = value;
				redoCtrlYToolStripMenuItem = _RedoCtrlYToolStripMenuItem;
				if (redoCtrlYToolStripMenuItem != null)
				{
					redoCtrlYToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator14")]
		internal virtual ToolStripSeparator ToolStripSeparator14
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TabPage1")]
		internal virtual TabPage TabPage1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TableLayoutPanel7")]
		internal virtual TableLayoutPanel TableLayoutPanel7
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ListView ListLocAll
		{
			[CompilerGenerated]
			get
			{
				return _ListLocAll;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ListLocAll_DoubleClick;
				DragEventHandler value3 = ListLocAll_DragDrop;
				DragEventHandler value4 = ListLocAll_DragOver;
				ItemDragEventHandler value5 = ListLocAll_ItemDrag;
				ListView listLocAll = _ListLocAll;
				if (listLocAll != null)
				{
					listLocAll.DoubleClick -= value2;
					listLocAll.DragDrop -= value3;
					listLocAll.DragOver -= value4;
					listLocAll.ItemDrag -= value5;
				}
				_ListLocAll = value;
				listLocAll = _ListLocAll;
				if (listLocAll != null)
				{
					listLocAll.DoubleClick += value2;
					listLocAll.DragDrop += value3;
					listLocAll.DragOver += value4;
					listLocAll.ItemDrag += value5;
				}
			}
		}

		[field: AccessedThroughProperty("ColumnHeader3")]
		public virtual ColumnHeader ColumnHeader3
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ListView ListLocUsed
		{
			[CompilerGenerated]
			get
			{
				return _ListLocUsed;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ListLocUsed_DoubleClick;
				DragEventHandler value3 = ListLocUsed_DragDrop;
				DragEventHandler value4 = ListLocUsed_DragOver;
				ItemDragEventHandler value5 = ListLocUsed_ItemDrag;
				ListView listLocUsed = _ListLocUsed;
				if (listLocUsed != null)
				{
					listLocUsed.DoubleClick -= value2;
					listLocUsed.DragDrop -= value3;
					listLocUsed.DragOver -= value4;
					listLocUsed.ItemDrag -= value5;
				}
				_ListLocUsed = value;
				listLocUsed = _ListLocUsed;
				if (listLocUsed != null)
				{
					listLocUsed.DoubleClick += value2;
					listLocUsed.DragDrop += value3;
					listLocUsed.DragOver += value4;
					listLocUsed.ItemDrag += value5;
				}
			}
		}

		[field: AccessedThroughProperty("ColumnHeader1")]
		public virtual ColumnHeader ColumnHeader1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TabItems")]
		internal virtual TabPage TabItems
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TableLayoutPanel9")]
		internal virtual TableLayoutPanel TableLayoutPanel9
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ListView ListItemsAll
		{
			[CompilerGenerated]
			get
			{
				return _ListItemsAll;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ListItemsAll_DoubleClick;
				DragEventHandler value3 = ListItemsAll_DragDrop;
				DragEventHandler value4 = ListItemsAll_DragOver;
				ItemDragEventHandler value5 = ListItemsAll_ItemDrag;
				ListView listItemsAll = _ListItemsAll;
				if (listItemsAll != null)
				{
					listItemsAll.DoubleClick -= value2;
					listItemsAll.DragDrop -= value3;
					listItemsAll.DragOver -= value4;
					listItemsAll.ItemDrag -= value5;
				}
				_ListItemsAll = value;
				listItemsAll = _ListItemsAll;
				if (listItemsAll != null)
				{
					listItemsAll.DoubleClick += value2;
					listItemsAll.DragDrop += value3;
					listItemsAll.DragOver += value4;
					listItemsAll.ItemDrag += value5;
				}
			}
		}

		[field: AccessedThroughProperty("ColumnHeader5")]
		public virtual ColumnHeader ColumnHeader5
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ListView listItemsUsed
		{
			[CompilerGenerated]
			get
			{
				return _listItemsUsed;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = listItemsUsed_DoubleClick;
				DragEventHandler value3 = listItemsUsed_DragDrop;
				DragEventHandler value4 = listItemsUsed_DragOver;
				ItemDragEventHandler value5 = listItemsUsed_ItemDrag;
				ListView listItemsUsed = _listItemsUsed;
				if (listItemsUsed != null)
				{
					listItemsUsed.DoubleClick -= value2;
					listItemsUsed.DragDrop -= value3;
					listItemsUsed.DragOver -= value4;
					listItemsUsed.ItemDrag -= value5;
				}
				_listItemsUsed = value;
				listItemsUsed = _listItemsUsed;
				if (listItemsUsed != null)
				{
					listItemsUsed.DoubleClick += value2;
					listItemsUsed.DragDrop += value3;
					listItemsUsed.DragOver += value4;
					listItemsUsed.ItemDrag += value5;
				}
			}
		}

		[field: AccessedThroughProperty("ColumnHeader6")]
		public virtual ColumnHeader ColumnHeader6
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TableLayoutPanel8")]
		internal virtual TableLayoutPanel TableLayoutPanel8
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ListView1")]
		public virtual ListView ListView1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ColumnHeader2")]
		public virtual ColumnHeader ColumnHeader2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ListView2")]
		public virtual ListView ListView2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ColumnHeader4")]
		public virtual ColumnHeader ColumnHeader4
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("lblStatus")]
		public virtual Label lblStatus
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("GroupBox1")]
		internal virtual GroupBox GroupBox1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("GroupBox2")]
		internal virtual GroupBox GroupBox2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual RadioButton optReaction
		{
			[CompilerGenerated]
			get
			{
				return _optReaction;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = optReaction_CheckedChanged;
				RadioButton optReaction = _optReaction;
				if (optReaction != null)
				{
					optReaction.CheckedChanged -= value2;
				}
				_optReaction = value;
				optReaction = _optReaction;
				if (optReaction != null)
				{
					optReaction.CheckedChanged += value2;
				}
			}
		}

		internal virtual RadioButton optAction
		{
			[CompilerGenerated]
			get
			{
				return _optAction;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = optAction_CheckedChanged;
				RadioButton optAction = _optAction;
				if (optAction != null)
				{
					optAction.CheckedChanged -= value2;
				}
				_optAction = value;
				optAction = _optAction;
				if (optAction != null)
				{
					optAction.CheckedChanged += value2;
				}
			}
		}

		[field: AccessedThroughProperty("optSubplot")]
		internal virtual RadioButton optSubplot
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("optPlot")]
		internal virtual RadioButton optPlot
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem StatusRatingsToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _StatusRatingsToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = StatusRatingsToolStripMenuItem_Click;
				ToolStripMenuItem statusRatingsToolStripMenuItem = _StatusRatingsToolStripMenuItem;
				if (statusRatingsToolStripMenuItem != null)
				{
					statusRatingsToolStripMenuItem.Click -= value2;
				}
				_StatusRatingsToolStripMenuItem = value;
				statusRatingsToolStripMenuItem = _StatusRatingsToolStripMenuItem;
				if (statusRatingsToolStripMenuItem != null)
				{
					statusRatingsToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("GroupBox4")]
		internal virtual GroupBox GroupBox4
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("GroupBox3")]
		internal virtual GroupBox GroupBox3
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripButton tssStrikeThru
		{
			[CompilerGenerated]
			get
			{
				return _tssStrikeThru;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ToolStripButton1_Click;
				ToolStripButton tssStrikeThru = _tssStrikeThru;
				if (tssStrikeThru != null)
				{
					tssStrikeThru.Click -= value2;
				}
				_tssStrikeThru = value;
				tssStrikeThru = _tssStrikeThru;
				if (tssStrikeThru != null)
				{
					tssStrikeThru.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("tssFilename")]
		internal virtual ToolStripStatusLabel tssFilename
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem mnuMarkKnownLocations
		{
			[CompilerGenerated]
			get
			{
				return _mnuMarkKnownLocations;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuMarkKnownLocations_Click;
				ToolStripMenuItem mnuMarkKnownLocations = _mnuMarkKnownLocations;
				if (mnuMarkKnownLocations != null)
				{
					mnuMarkKnownLocations.Click -= value2;
				}
				_mnuMarkKnownLocations = value;
				mnuMarkKnownLocations = _mnuMarkKnownLocations;
				if (mnuMarkKnownLocations != null)
				{
					mnuMarkKnownLocations.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuMarkKnownItems
		{
			[CompilerGenerated]
			get
			{
				return _mnuMarkKnownItems;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuMarkKnownItems_Click;
				ToolStripMenuItem mnuMarkKnownItems = _mnuMarkKnownItems;
				if (mnuMarkKnownItems != null)
				{
					mnuMarkKnownItems.Click -= value2;
				}
				_mnuMarkKnownItems = value;
				mnuMarkKnownItems = _mnuMarkKnownItems;
				if (mnuMarkKnownItems != null)
				{
					mnuMarkKnownItems.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem KeyboardShortcutsToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _KeyboardShortcutsToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = KeyboardShortcutsToolStripMenuItem_Click;
				ToolStripMenuItem keyboardShortcutsToolStripMenuItem = _KeyboardShortcutsToolStripMenuItem;
				if (keyboardShortcutsToolStripMenuItem != null)
				{
					keyboardShortcutsToolStripMenuItem.Click -= value2;
				}
				_KeyboardShortcutsToolStripMenuItem = value;
				keyboardShortcutsToolStripMenuItem = _KeyboardShortcutsToolStripMenuItem;
				if (keyboardShortcutsToolStripMenuItem != null)
				{
					keyboardShortcutsToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("chkAppendToPrev")]
		internal virtual CheckBox chkAppendToPrev
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("tssPrintStatus")]
		internal virtual ToolStripStatusLabel tssPrintStatus
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem ClickableHyperlinksToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ClickableHyperlinksToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ClickableHyperlinksToolStripMenuItem_Click;
				ToolStripMenuItem clickableHyperlinksToolStripMenuItem = _ClickableHyperlinksToolStripMenuItem;
				if (clickableHyperlinksToolStripMenuItem != null)
				{
					clickableHyperlinksToolStripMenuItem.Click -= value2;
				}
				_ClickableHyperlinksToolStripMenuItem = value;
				clickableHyperlinksToolStripMenuItem = _ClickableHyperlinksToolStripMenuItem;
				if (clickableHyperlinksToolStripMenuItem != null)
				{
					clickableHyperlinksToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem InsertLinkToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _InsertLinkToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = InsertLinkToolStripMenuItem_Click;
				ToolStripMenuItem insertLinkToolStripMenuItem = _InsertLinkToolStripMenuItem;
				if (insertLinkToolStripMenuItem != null)
				{
					insertLinkToolStripMenuItem.Click -= value2;
				}
				_InsertLinkToolStripMenuItem = value;
				insertLinkToolStripMenuItem = _InsertLinkToolStripMenuItem;
				if (insertLinkToolStripMenuItem != null)
				{
					insertLinkToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("CustomColoursToolStripMenuItem")]
		internal virtual ToolStripMenuItem CustomColoursToolStripMenuItem
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem SetCharacterHighlightToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _SetCharacterHighlightToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = SetCharacterHighlightToolStripMenuItem_Click;
				ToolStripMenuItem setCharacterHighlightToolStripMenuItem = _SetCharacterHighlightToolStripMenuItem;
				if (setCharacterHighlightToolStripMenuItem != null)
				{
					setCharacterHighlightToolStripMenuItem.Click -= value2;
				}
				_SetCharacterHighlightToolStripMenuItem = value;
				setCharacterHighlightToolStripMenuItem = _SetCharacterHighlightToolStripMenuItem;
				if (setCharacterHighlightToolStripMenuItem != null)
				{
					setCharacterHighlightToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem SetLocationsColourToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _SetLocationsColourToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = SetLocationsColourToolStripMenuItem_Click;
				ToolStripMenuItem setLocationsColourToolStripMenuItem = _SetLocationsColourToolStripMenuItem;
				if (setLocationsColourToolStripMenuItem != null)
				{
					setLocationsColourToolStripMenuItem.Click -= value2;
				}
				_SetLocationsColourToolStripMenuItem = value;
				setLocationsColourToolStripMenuItem = _SetLocationsColourToolStripMenuItem;
				if (setLocationsColourToolStripMenuItem != null)
				{
					setLocationsColourToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem SetItemsColourToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _SetItemsColourToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = SetItemsColourToolStripMenuItem_Click;
				ToolStripMenuItem setItemsColourToolStripMenuItem = _SetItemsColourToolStripMenuItem;
				if (setItemsColourToolStripMenuItem != null)
				{
					setItemsColourToolStripMenuItem.Click -= value2;
				}
				_SetItemsColourToolStripMenuItem = value;
				setItemsColourToolStripMenuItem = _SetItemsColourToolStripMenuItem;
				if (setItemsColourToolStripMenuItem != null)
				{
					setItemsColourToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator15")]
		internal virtual ToolStripSeparator ToolStripSeparator15
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem SetSpellCheckColourToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _SetSpellCheckColourToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = SetSpellCheckColourToolStripMenuItem_Click;
				ToolStripMenuItem setSpellCheckColourToolStripMenuItem = _SetSpellCheckColourToolStripMenuItem;
				if (setSpellCheckColourToolStripMenuItem != null)
				{
					setSpellCheckColourToolStripMenuItem.Click -= value2;
				}
				_SetSpellCheckColourToolStripMenuItem = value;
				setSpellCheckColourToolStripMenuItem = _SetSpellCheckColourToolStripMenuItem;
				if (setSpellCheckColourToolStripMenuItem != null)
				{
					setSpellCheckColourToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem SetHighlightColourToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _SetHighlightColourToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = SetHighlightColourToolStripMenuItem_Click;
				ToolStripMenuItem setHighlightColourToolStripMenuItem = _SetHighlightColourToolStripMenuItem;
				if (setHighlightColourToolStripMenuItem != null)
				{
					setHighlightColourToolStripMenuItem.Click -= value2;
				}
				_SetHighlightColourToolStripMenuItem = value;
				setHighlightColourToolStripMenuItem = _SetHighlightColourToolStripMenuItem;
				if (setHighlightColourToolStripMenuItem != null)
				{
					setHighlightColourToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem DefaultsToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _DefaultsToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = DefaultsToolStripMenuItem_Click;
				ToolStripMenuItem defaultsToolStripMenuItem = _DefaultsToolStripMenuItem;
				if (defaultsToolStripMenuItem != null)
				{
					defaultsToolStripMenuItem.Click -= value2;
				}
				_DefaultsToolStripMenuItem = value;
				defaultsToolStripMenuItem = _DefaultsToolStripMenuItem;
				if (defaultsToolStripMenuItem != null)
				{
					defaultsToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem tsmDefaultSpellColour
		{
			[CompilerGenerated]
			get
			{
				return _tsmDefaultSpellColour;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsmDefaultSpellColour_Click;
				ToolStripMenuItem tsmDefaultSpellColour = _tsmDefaultSpellColour;
				if (tsmDefaultSpellColour != null)
				{
					tsmDefaultSpellColour.Click -= value2;
				}
				_tsmDefaultSpellColour = value;
				tsmDefaultSpellColour = _tsmDefaultSpellColour;
				if (tsmDefaultSpellColour != null)
				{
					tsmDefaultSpellColour.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator16")]
		internal virtual ToolStripSeparator ToolStripSeparator16
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator17")]
		internal virtual ToolStripSeparator ToolStripSeparator17
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem TypewriterSoundsToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _TypewriterSoundsToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = TypewriterSoundsToolStripMenuItem_Click;
				ToolStripMenuItem typewriterSoundsToolStripMenuItem = _TypewriterSoundsToolStripMenuItem;
				if (typewriterSoundsToolStripMenuItem != null)
				{
					typewriterSoundsToolStripMenuItem.Click -= value2;
				}
				_TypewriterSoundsToolStripMenuItem = value;
				typewriterSoundsToolStripMenuItem = _TypewriterSoundsToolStripMenuItem;
				if (typewriterSoundsToolStripMenuItem != null)
				{
					typewriterSoundsToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem TiledEditorWindowsToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _TiledEditorWindowsToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = TiledEditorWindowsToolStripMenuItem_Click;
				ToolStripMenuItem tiledEditorWindowsToolStripMenuItem = _TiledEditorWindowsToolStripMenuItem;
				if (tiledEditorWindowsToolStripMenuItem != null)
				{
					tiledEditorWindowsToolStripMenuItem.Click -= value2;
				}
				_TiledEditorWindowsToolStripMenuItem = value;
				tiledEditorWindowsToolStripMenuItem = _TiledEditorWindowsToolStripMenuItem;
				if (tiledEditorWindowsToolStripMenuItem != null)
				{
					tiledEditorWindowsToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("lblUnusedIndicator")]
		internal virtual Label lblUnusedIndicator
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("tabGoals")]
		internal virtual TabPage tabGoals
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem AddSelectionAsNewCharacterToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _AddSelectionAsNewCharacterToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = AddSelectionAsNewCharacterToolStripMenuItem_Click;
				ToolStripMenuItem addSelectionAsNewCharacterToolStripMenuItem = _AddSelectionAsNewCharacterToolStripMenuItem;
				if (addSelectionAsNewCharacterToolStripMenuItem != null)
				{
					addSelectionAsNewCharacterToolStripMenuItem.Click -= value2;
				}
				_AddSelectionAsNewCharacterToolStripMenuItem = value;
				addSelectionAsNewCharacterToolStripMenuItem = _AddSelectionAsNewCharacterToolStripMenuItem;
				if (addSelectionAsNewCharacterToolStripMenuItem != null)
				{
					addSelectionAsNewCharacterToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem CreateLocationFromSelectionToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _CreateLocationFromSelectionToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = CreateLocationFromSelectionToolStripMenuItem_Click;
				ToolStripMenuItem createLocationFromSelectionToolStripMenuItem = _CreateLocationFromSelectionToolStripMenuItem;
				if (createLocationFromSelectionToolStripMenuItem != null)
				{
					createLocationFromSelectionToolStripMenuItem.Click -= value2;
				}
				_CreateLocationFromSelectionToolStripMenuItem = value;
				createLocationFromSelectionToolStripMenuItem = _CreateLocationFromSelectionToolStripMenuItem;
				if (createLocationFromSelectionToolStripMenuItem != null)
				{
					createLocationFromSelectionToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem CreateItemFromSelectionToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _CreateItemFromSelectionToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = CreateItemFromSelectionToolStripMenuItem_Click;
				ToolStripMenuItem createItemFromSelectionToolStripMenuItem = _CreateItemFromSelectionToolStripMenuItem;
				if (createItemFromSelectionToolStripMenuItem != null)
				{
					createItemFromSelectionToolStripMenuItem.Click -= value2;
				}
				_CreateItemFromSelectionToolStripMenuItem = value;
				createItemFromSelectionToolStripMenuItem = _CreateItemFromSelectionToolStripMenuItem;
				if (createItemFromSelectionToolStripMenuItem != null)
				{
					createItemFromSelectionToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator18")]
		internal virtual ToolStripSeparator ToolStripSeparator18
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("tssToday")]
		internal virtual ToolStripStatusLabel tssToday
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ReplaceWithToolStripMenuItem")]
		internal virtual ToolStripMenuItem ReplaceWithToolStripMenuItem
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator19")]
		internal virtual ToolStripSeparator ToolStripSeparator19
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripButton tsbCopy
		{
			[CompilerGenerated]
			get
			{
				return _tsbCopy;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsbCopy_Click;
				ToolStripButton tsbCopy = _tsbCopy;
				if (tsbCopy != null)
				{
					tsbCopy.Click -= value2;
				}
				_tsbCopy = value;
				tsbCopy = _tsbCopy;
				if (tsbCopy != null)
				{
					tsbCopy.Click += value2;
				}
			}
		}

		internal virtual ToolStripButton tsbCut
		{
			[CompilerGenerated]
			get
			{
				return _tsbCut;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsbCut_Click;
				ToolStripButton tsbCut = _tsbCut;
				if (tsbCut != null)
				{
					tsbCut.Click -= value2;
				}
				_tsbCut = value;
				tsbCut = _tsbCut;
				if (tsbCut != null)
				{
					tsbCut.Click += value2;
				}
			}
		}

		internal virtual ToolStripButton tsbPaste
		{
			[CompilerGenerated]
			get
			{
				return _tsbPaste;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsbPaste_Click;
				ToolStripButton tsbPaste = _tsbPaste;
				if (tsbPaste != null)
				{
					tsbPaste.Click -= value2;
				}
				_tsbPaste = value;
				tsbPaste = _tsbPaste;
				if (tsbPaste != null)
				{
					tsbPaste.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator20")]
		internal virtual ToolStripSeparator ToolStripSeparator20
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem tsmAddListItem
		{
			[CompilerGenerated]
			get
			{
				return _tsmAddListItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsmAddListItem_Click;
				ToolStripMenuItem tsmAddListItem = _tsmAddListItem;
				if (tsmAddListItem != null)
				{
					tsmAddListItem.Click -= value2;
				}
				_tsmAddListItem = value;
				tsmAddListItem = _tsmAddListItem;
				if (tsmAddListItem != null)
				{
					tsmAddListItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripButton tsbLeftAlign
		{
			[CompilerGenerated]
			get
			{
				return _tsbLeftAlign;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsbLeftAlign_Click;
				ToolStripButton tsbLeftAlign = _tsbLeftAlign;
				if (tsbLeftAlign != null)
				{
					tsbLeftAlign.Click -= value2;
				}
				_tsbLeftAlign = value;
				tsbLeftAlign = _tsbLeftAlign;
				if (tsbLeftAlign != null)
				{
					tsbLeftAlign.Click += value2;
				}
			}
		}

		internal virtual ToolStripButton tsbAlignRight
		{
			[CompilerGenerated]
			get
			{
				return _tsbAlignRight;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsbAlignRight_Click;
				ToolStripButton tsbAlignRight = _tsbAlignRight;
				if (tsbAlignRight != null)
				{
					tsbAlignRight.Click -= value2;
				}
				_tsbAlignRight = value;
				tsbAlignRight = _tsbAlignRight;
				if (tsbAlignRight != null)
				{
					tsbAlignRight.Click += value2;
				}
			}
		}

		internal virtual ToolStripButton tsbAlignCentre
		{
			[CompilerGenerated]
			get
			{
				return _tsbAlignCentre;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsbAlignCentre_Click;
				ToolStripButton tsbAlignCentre = _tsbAlignCentre;
				if (tsbAlignCentre != null)
				{
					tsbAlignCentre.Click -= value2;
				}
				_tsbAlignCentre = value;
				tsbAlignCentre = _tsbAlignCentre;
				if (tsbAlignCentre != null)
				{
					tsbAlignCentre.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator21")]
		internal virtual ToolStripSeparator ToolStripSeparator21
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual Button cmdClear
		{
			[CompilerGenerated]
			get
			{
				return _cmdClear;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdClear_Click;
				Button cmdClear = _cmdClear;
				if (cmdClear != null)
				{
					cmdClear.Click -= value2;
				}
				_cmdClear = value;
				cmdClear = _cmdClear;
				if (cmdClear != null)
				{
					cmdClear.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("tssSpeed")]
		internal virtual ToolStripStatusLabel tssSpeed
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual System.Windows.Forms.Timer TimerSpeed
		{
			[CompilerGenerated]
			get
			{
				return _TimerSpeed;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = TimerSpeed_Tick;
				System.Windows.Forms.Timer timerSpeed = _TimerSpeed;
				if (timerSpeed != null)
				{
					timerSpeed.Tick -= value2;
				}
				_TimerSpeed = value;
				timerSpeed = _TimerSpeed;
				if (timerSpeed != null)
				{
					timerSpeed.Tick += value2;
				}
			}
		}

		[field: AccessedThroughProperty("TabPage2")]
		internal virtual TabPage TabPage2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Panel3")]
		internal virtual Panel Panel3
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("PanelExportCondAll")]
		internal virtual Panel PanelExportCondAll
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label3")]
		internal virtual Label Label3
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("PanelSpecificExportOpts")]
		internal virtual Panel PanelSpecificExportOpts
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("chkWhenHTML")]
		internal virtual CheckBox chkWhenHTML
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("chkWhenText")]
		internal virtual CheckBox chkWhenText
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual CheckBox chkWhenRTF
		{
			[CompilerGenerated]
			get
			{
				return _chkWhenRTF;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = chkWhenRTF_CheckedChanged;
				CheckBox chkWhenRTF = _chkWhenRTF;
				if (chkWhenRTF != null)
				{
					chkWhenRTF.CheckedChanged -= value2;
				}
				_chkWhenRTF = value;
				chkWhenRTF = _chkWhenRTF;
				if (chkWhenRTF != null)
				{
					chkWhenRTF.CheckedChanged += value2;
				}
			}
		}

		[field: AccessedThroughProperty("chkWhenLatex")]
		internal virtual CheckBox chkWhenLatex
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label2")]
		internal virtual Label Label2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual RadioButton optConditions
		{
			[CompilerGenerated]
			get
			{
				return _optConditions;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = optConditions_CheckedChanged;
				RadioButton optConditions = _optConditions;
				if (optConditions != null)
				{
					optConditions.CheckedChanged -= value2;
				}
				_optConditions = value;
				optConditions = _optConditions;
				if (optConditions != null)
				{
					optConditions.CheckedChanged += value2;
				}
			}
		}

		internal virtual RadioButton optAlways
		{
			[CompilerGenerated]
			get
			{
				return _optAlways;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = optAlways_CheckedChanged;
				RadioButton optAlways = _optAlways;
				if (optAlways != null)
				{
					optAlways.CheckedChanged -= value2;
				}
				_optAlways = value;
				optAlways = _optAlways;
				if (optAlways != null)
				{
					optAlways.CheckedChanged += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem SpecialCodesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _SpecialCodesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = SpecialCodesToolStripMenuItem_Click;
				ToolStripMenuItem specialCodesToolStripMenuItem = _SpecialCodesToolStripMenuItem;
				if (specialCodesToolStripMenuItem != null)
				{
					specialCodesToolStripMenuItem.Click -= value2;
				}
				_SpecialCodesToolStripMenuItem = value;
				specialCodesToolStripMenuItem = _SpecialCodesToolStripMenuItem;
				if (specialCodesToolStripMenuItem != null)
				{
					specialCodesToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripButton tssClearSelectedFormatting
		{
			[CompilerGenerated]
			get
			{
				return _tssClearSelectedFormatting;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tssClearSelectedFormatting_Click;
				ToolStripButton tssClearSelectedFormatting = _tssClearSelectedFormatting;
				if (tssClearSelectedFormatting != null)
				{
					tssClearSelectedFormatting.Click -= value2;
				}
				_tssClearSelectedFormatting = value;
				tssClearSelectedFormatting = _tssClearSelectedFormatting;
				if (tssClearSelectedFormatting != null)
				{
					tssClearSelectedFormatting.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ViewInReverseOrderToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ViewInReverseOrderToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ViewInReverseOrderToolStripMenuItem_Click;
				ToolStripMenuItem viewInReverseOrderToolStripMenuItem = _ViewInReverseOrderToolStripMenuItem;
				if (viewInReverseOrderToolStripMenuItem != null)
				{
					viewInReverseOrderToolStripMenuItem.Click -= value2;
				}
				_ViewInReverseOrderToolStripMenuItem = value;
				viewInReverseOrderToolStripMenuItem = _ViewInReverseOrderToolStripMenuItem;
				if (viewInReverseOrderToolStripMenuItem != null)
				{
					viewInReverseOrderToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("chkWhenRTFChapters")]
		internal virtual CheckBox chkWhenRTFChapters
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual TableLayoutPanel TableLayoutMainDetails
		{
			[CompilerGenerated]
			get
			{
				return _TableLayoutMainDetails;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				PaintEventHandler value2 = TableLayoutMainDetails_Paint;
				TableLayoutPanel tableLayoutMainDetails = _TableLayoutMainDetails;
				if (tableLayoutMainDetails != null)
				{
					tableLayoutMainDetails.Paint -= value2;
				}
				_TableLayoutMainDetails = value;
				tableLayoutMainDetails = _TableLayoutMainDetails;
				if (tableLayoutMainDetails != null)
				{
					tableLayoutMainDetails.Paint += value2;
				}
			}
		}

		[field: AccessedThroughProperty("PanelMainTextPadding")]
		internal virtual Panel PanelMainTextPadding
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("PanelTabs")]
		internal virtual Panel PanelTabs
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("MainMenu1")]
		protected virtual MenuStrip MainMenu1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem CapitaliseFirstLetterOfSentenceToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _CapitaliseFirstLetterOfSentenceToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = CapitaliseFirstLetterOfSentenceToolStripMenuItem_Click;
				ToolStripMenuItem capitaliseFirstLetterOfSentenceToolStripMenuItem = _CapitaliseFirstLetterOfSentenceToolStripMenuItem;
				if (capitaliseFirstLetterOfSentenceToolStripMenuItem != null)
				{
					capitaliseFirstLetterOfSentenceToolStripMenuItem.Click -= value2;
				}
				_CapitaliseFirstLetterOfSentenceToolStripMenuItem = value;
				capitaliseFirstLetterOfSentenceToolStripMenuItem = _CapitaliseFirstLetterOfSentenceToolStripMenuItem;
				if (capitaliseFirstLetterOfSentenceToolStripMenuItem != null)
				{
					capitaliseFirstLetterOfSentenceToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem AlwaysCapitaliseIToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _AlwaysCapitaliseIToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = AlwaysCapitaliseIToolStripMenuItem_Click;
				ToolStripMenuItem alwaysCapitaliseIToolStripMenuItem = _AlwaysCapitaliseIToolStripMenuItem;
				if (alwaysCapitaliseIToolStripMenuItem != null)
				{
					alwaysCapitaliseIToolStripMenuItem.Click -= value2;
				}
				_AlwaysCapitaliseIToolStripMenuItem = value;
				alwaysCapitaliseIToolStripMenuItem = _AlwaysCapitaliseIToolStripMenuItem;
				if (alwaysCapitaliseIToolStripMenuItem != null)
				{
					alwaysCapitaliseIToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("tabTime")]
		internal virtual TabPage tabTime
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("tabRatings")]
		internal virtual TabPage tabRatings
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label8")]
		internal virtual Label Label8
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtDesc")]
		public virtual RichTextBox txtDesc
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripButton cmdComment
		{
			[CompilerGenerated]
			get
			{
				return _cmdComment;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdComment_Click;
				ToolStripButton cmdComment = _cmdComment;
				if (cmdComment != null)
				{
					cmdComment.Click -= value2;
				}
				_cmdComment = value;
				cmdComment = _cmdComment;
				if (cmdComment != null)
				{
					cmdComment.Click += value2;
				}
			}
		}

		public virtual TextBox txtTitle
		{
			[CompilerGenerated]
			get
			{
				return _txtTitle;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = txtTitle_TextChanged;
				KeyEventHandler value3 = txtTitle_KeyDown;
				TextBox txtTitle = _txtTitle;
				if (txtTitle != null)
				{
					txtTitle.TextChanged -= value2;
					txtTitle.KeyDown -= value3;
				}
				_txtTitle = value;
				txtTitle = _txtTitle;
				if (txtTitle != null)
				{
					txtTitle.TextChanged += value2;
					txtTitle.KeyDown += value3;
				}
			}
		}

		protected virtual clsPrintScene cPC
		{
			[CompilerGenerated]
			get
			{
				return _cPC;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				clsPrintScene.PrintProgressEventHandler obj = PrintProgress;
				clsPrintScene cPC = _cPC;
				if (cPC != null)
				{
					cPC.PrintProgress -= obj;
				}
				_cPC = value;
				cPC = _cPC;
				if (cPC != null)
				{
					cPC.PrintProgress += obj;
				}
			}
		}

		protected virtual frmFind Find
		{
			[CompilerGenerated]
			get
			{
				return _Find;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				frmFind.DoPreviousEventHandler obj = Find_DoPrevious;
				frmFind.DoFindEventHandler obj2 = Find_DoFind;
				frmFind.DoReplaceEventHandler obj3 = Find_DoReplace;
				frmFind.DoReplaceAllEventHandler obj4 = Find_DoReplaceAll;
				frmFind find = _Find;
				if (find != null)
				{
					find.DoPrevious -= obj;
					find.DoFind -= obj2;
					find.DoReplace -= obj3;
					find.DoReplaceAll -= obj4;
				}
				_Find = value;
				find = _Find;
				if (find != null)
				{
					find.DoPrevious += obj;
					find.DoFind += obj2;
					find.DoReplace += obj3;
					find.DoReplaceAll += obj4;
				}
			}
		}

		private bool Dirty
		{
			get
			{
				return mvarDirty;
			}
			set
			{
				mvarDirty = value;
			}
		}

		public int ID => LocalScID;

		public event FinishedEventHandler Finished
		{
			[CompilerGenerated]
			add
			{
				FinishedEventHandler finishedEventHandler = FinishedEvent;
				FinishedEventHandler finishedEventHandler2;
				do
				{
					finishedEventHandler2 = finishedEventHandler;
					FinishedEventHandler value2 = (FinishedEventHandler)Delegate.Combine(finishedEventHandler2, value);
					finishedEventHandler = Interlocked.CompareExchange(ref FinishedEvent, value2, finishedEventHandler2);
				}
				while ((object)finishedEventHandler != finishedEventHandler2);
			}
			[CompilerGenerated]
			remove
			{
				FinishedEventHandler finishedEventHandler = FinishedEvent;
				FinishedEventHandler finishedEventHandler2;
				do
				{
					finishedEventHandler2 = finishedEventHandler;
					FinishedEventHandler value2 = (FinishedEventHandler)Delegate.Remove(finishedEventHandler2, value);
					finishedEventHandler = Interlocked.CompareExchange(ref FinishedEvent, value2, finishedEventHandler2);
				}
				while ((object)finishedEventHandler != finishedEventHandler2);
			}
		}

		public event TriggerTiledWindowsEventHandler TriggerTiledWindows
		{
			[CompilerGenerated]
			add
			{
				TriggerTiledWindowsEventHandler triggerTiledWindowsEventHandler = TriggerTiledWindowsEvent;
				TriggerTiledWindowsEventHandler triggerTiledWindowsEventHandler2;
				do
				{
					triggerTiledWindowsEventHandler2 = triggerTiledWindowsEventHandler;
					TriggerTiledWindowsEventHandler value2 = (TriggerTiledWindowsEventHandler)Delegate.Combine(triggerTiledWindowsEventHandler2, value);
					triggerTiledWindowsEventHandler = Interlocked.CompareExchange(ref TriggerTiledWindowsEvent, value2, triggerTiledWindowsEventHandler2);
				}
				while ((object)triggerTiledWindowsEventHandler != triggerTiledWindowsEventHandler2);
			}
			[CompilerGenerated]
			remove
			{
				TriggerTiledWindowsEventHandler triggerTiledWindowsEventHandler = TriggerTiledWindowsEvent;
				TriggerTiledWindowsEventHandler triggerTiledWindowsEventHandler2;
				do
				{
					triggerTiledWindowsEventHandler2 = triggerTiledWindowsEventHandler;
					TriggerTiledWindowsEventHandler value2 = (TriggerTiledWindowsEventHandler)Delegate.Remove(triggerTiledWindowsEventHandler2, value);
					triggerTiledWindowsEventHandler = Interlocked.CompareExchange(ref TriggerTiledWindowsEvent, value2, triggerTiledWindowsEventHandler2);
				}
				while ((object)triggerTiledWindowsEventHandler != triggerTiledWindowsEventHandler2);
			}
		}

		public event TriggerUntiledWindowsEventHandler TriggerUntiledWindows
		{
			[CompilerGenerated]
			add
			{
				TriggerUntiledWindowsEventHandler triggerUntiledWindowsEventHandler = TriggerUntiledWindowsEvent;
				TriggerUntiledWindowsEventHandler triggerUntiledWindowsEventHandler2;
				do
				{
					triggerUntiledWindowsEventHandler2 = triggerUntiledWindowsEventHandler;
					TriggerUntiledWindowsEventHandler value2 = (TriggerUntiledWindowsEventHandler)Delegate.Combine(triggerUntiledWindowsEventHandler2, value);
					triggerUntiledWindowsEventHandler = Interlocked.CompareExchange(ref TriggerUntiledWindowsEvent, value2, triggerUntiledWindowsEventHandler2);
				}
				while ((object)triggerUntiledWindowsEventHandler != triggerUntiledWindowsEventHandler2);
			}
			[CompilerGenerated]
			remove
			{
				TriggerUntiledWindowsEventHandler triggerUntiledWindowsEventHandler = TriggerUntiledWindowsEvent;
				TriggerUntiledWindowsEventHandler triggerUntiledWindowsEventHandler2;
				do
				{
					triggerUntiledWindowsEventHandler2 = triggerUntiledWindowsEventHandler;
					TriggerUntiledWindowsEventHandler value2 = (TriggerUntiledWindowsEventHandler)Delegate.Remove(triggerUntiledWindowsEventHandler2, value);
					triggerUntiledWindowsEventHandler = Interlocked.CompareExchange(ref TriggerUntiledWindowsEvent, value2, triggerUntiledWindowsEventHandler2);
				}
				while ((object)triggerUntiledWindowsEventHandler != triggerUntiledWindowsEventHandler2);
			}
		}

		public event EditDifferentSceneEventHandler EditDifferentScene
		{
			[CompilerGenerated]
			add
			{
				EditDifferentSceneEventHandler editDifferentSceneEventHandler = EditDifferentSceneEvent;
				EditDifferentSceneEventHandler editDifferentSceneEventHandler2;
				do
				{
					editDifferentSceneEventHandler2 = editDifferentSceneEventHandler;
					EditDifferentSceneEventHandler value2 = (EditDifferentSceneEventHandler)Delegate.Combine(editDifferentSceneEventHandler2, value);
					editDifferentSceneEventHandler = Interlocked.CompareExchange(ref EditDifferentSceneEvent, value2, editDifferentSceneEventHandler2);
				}
				while ((object)editDifferentSceneEventHandler != editDifferentSceneEventHandler2);
			}
			[CompilerGenerated]
			remove
			{
				EditDifferentSceneEventHandler editDifferentSceneEventHandler = EditDifferentSceneEvent;
				EditDifferentSceneEventHandler editDifferentSceneEventHandler2;
				do
				{
					editDifferentSceneEventHandler2 = editDifferentSceneEventHandler;
					EditDifferentSceneEventHandler value2 = (EditDifferentSceneEventHandler)Delegate.Remove(editDifferentSceneEventHandler2, value);
					editDifferentSceneEventHandler = Interlocked.CompareExchange(ref EditDifferentSceneEvent, value2, editDifferentSceneEventHandler2);
				}
				while ((object)editDifferentSceneEventHandler != editDifferentSceneEventHandler2);
			}
		}

		public event CreateNewSceneEventHandler CreateNewScene
		{
			[CompilerGenerated]
			add
			{
				CreateNewSceneEventHandler createNewSceneEventHandler = CreateNewSceneEvent;
				CreateNewSceneEventHandler createNewSceneEventHandler2;
				do
				{
					createNewSceneEventHandler2 = createNewSceneEventHandler;
					CreateNewSceneEventHandler value2 = (CreateNewSceneEventHandler)Delegate.Combine(createNewSceneEventHandler2, value);
					createNewSceneEventHandler = Interlocked.CompareExchange(ref CreateNewSceneEvent, value2, createNewSceneEventHandler2);
				}
				while ((object)createNewSceneEventHandler != createNewSceneEventHandler2);
			}
			[CompilerGenerated]
			remove
			{
				CreateNewSceneEventHandler createNewSceneEventHandler = CreateNewSceneEvent;
				CreateNewSceneEventHandler createNewSceneEventHandler2;
				do
				{
					createNewSceneEventHandler2 = createNewSceneEventHandler;
					CreateNewSceneEventHandler value2 = (CreateNewSceneEventHandler)Delegate.Remove(createNewSceneEventHandler2, value);
					createNewSceneEventHandler = Interlocked.CompareExchange(ref CreateNewSceneEvent, value2, createNewSceneEventHandler2);
				}
				while ((object)createNewSceneEventHandler != createNewSceneEventHandler2);
			}
		}

		public event SettingsChangedEventHandler SettingsChanged
		{
			[CompilerGenerated]
			add
			{
				SettingsChangedEventHandler settingsChangedEventHandler = SettingsChangedEvent;
				SettingsChangedEventHandler settingsChangedEventHandler2;
				do
				{
					settingsChangedEventHandler2 = settingsChangedEventHandler;
					SettingsChangedEventHandler value2 = (SettingsChangedEventHandler)Delegate.Combine(settingsChangedEventHandler2, value);
					settingsChangedEventHandler = Interlocked.CompareExchange(ref SettingsChangedEvent, value2, settingsChangedEventHandler2);
				}
				while ((object)settingsChangedEventHandler != settingsChangedEventHandler2);
			}
			[CompilerGenerated]
			remove
			{
				SettingsChangedEventHandler settingsChangedEventHandler = SettingsChangedEvent;
				SettingsChangedEventHandler settingsChangedEventHandler2;
				do
				{
					settingsChangedEventHandler2 = settingsChangedEventHandler;
					SettingsChangedEventHandler value2 = (SettingsChangedEventHandler)Delegate.Remove(settingsChangedEventHandler2, value);
					settingsChangedEventHandler = Interlocked.CompareExchange(ref SettingsChangedEvent, value2, settingsChangedEventHandler2);
				}
				while ((object)settingsChangedEventHandler != settingsChangedEventHandler2);
			}
		}

		[DebuggerNonUserCode]
		protected override void Dispose(bool Disposing)
		{
			if (Disposing && components != null)
			{
				components.Dispose();
			}
			base.Dispose(Disposing);
		}

		[System.Diagnostics.DebuggerStepThrough]
		private void InitializeComponent()
		{
			components = new System.ComponentModel.Container();
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(yWriter6.frmEditor));
			ToolTip1 = new System.Windows.Forms.ToolTip(components);
			cmdEditChar = new System.Windows.Forms.Button();
			cmdAddChar = new System.Windows.Forms.Button();
			cmbViewpoint = new System.Windows.Forms.ComboBox();
			lblGoal = new System.Windows.Forms.Label();
			lblConflict = new System.Windows.Forms.Label();
			lblOutcome = new System.Windows.Forms.Label();
			cmdPrev = new System.Windows.Forms.Button();
			cmdNext = new System.Windows.Forms.Button();
			cmdSave = new System.Windows.Forms.Button();
			cmdSaveAndExit = new System.Windows.Forms.Button();
			ListCharAll = new System.Windows.Forms.ListView();
			__ListChar_1_ColumnHeader_1 = new System.Windows.Forms.ColumnHeader();
			__ListChar_1_ColumnHeader_2 = new System.Windows.Forms.ColumnHeader();
			ctxListsRC = new System.Windows.Forms.ContextMenuStrip(components);
			tsmAddListItem = new System.Windows.Forms.ToolStripMenuItem();
			tsmEditListItem = new System.Windows.Forms.ToolStripMenuItem();
			ListCharUsed = new System.Windows.Forms.ListView();
			__ListChar_0_ColumnHeader_1 = new System.Windows.Forms.ColumnHeader();
			__ListChar_0_ColumnHeader_2 = new System.Windows.Forms.ColumnHeader();
			txtCharDesc = new System.Windows.Forms.RichTextBox();
			txtCharNotes = new System.Windows.Forms.RichTextBox();
			cmdSelectImage = new System.Windows.Forms.Button();
			cmdSwitchDateMode1 = new System.Windows.Forms.Button();
			txtNotes = new System.Windows.Forms.RichTextBox();
			txtTags = new System.Windows.Forms.TextBox();
			ListLocUsed = new System.Windows.Forms.ListView();
			ColumnHeader1 = new System.Windows.Forms.ColumnHeader();
			ListLocAll = new System.Windows.Forms.ListView();
			ColumnHeader3 = new System.Windows.Forms.ColumnHeader();
			ListView1 = new System.Windows.Forms.ListView();
			ColumnHeader2 = new System.Windows.Forms.ColumnHeader();
			ListView2 = new System.Windows.Forms.ListView();
			ColumnHeader4 = new System.Windows.Forms.ColumnHeader();
			ListItemsAll = new System.Windows.Forms.ListView();
			ColumnHeader5 = new System.Windows.Forms.ColumnHeader();
			listItemsUsed = new System.Windows.Forms.ListView();
			ColumnHeader6 = new System.Windows.Forms.ColumnHeader();
			optAction = new System.Windows.Forms.RadioButton();
			optReaction = new System.Windows.Forms.RadioButton();
			chkAppendToPrev = new System.Windows.Forms.CheckBox();
			chkWhenRTFChapters = new System.Windows.Forms.CheckBox();
			txtDesc = new System.Windows.Forms.RichTextBox();
			txtTitle = new System.Windows.Forms.TextBox();
			MainMenu1 = new System.Windows.Forms.MenuStrip();
			mnuFile = new System.Windows.Forms.ToolStripMenuItem();
			mnuSave = new System.Windows.Forms.ToolStripMenuItem();
			mnuSaveAndExit = new System.Windows.Forms.ToolStripMenuItem();
			pbar1 = new System.Windows.Forms.ToolStripSeparator();
			mnuExit = new System.Windows.Forms.ToolStripMenuItem();
			mnuScene = new System.Windows.Forms.ToolStripMenuItem();
			mnuInsertScene = new System.Windows.Forms.ToolStripMenuItem();
			mnuNewScene = new System.Windows.Forms.ToolStripMenuItem();
			pbar12 = new System.Windows.Forms.ToolStripSeparator();
			mnuPrintScene = new System.Windows.Forms.ToolStripMenuItem();
			scnsplit = new System.Windows.Forms.ToolStripSeparator();
			mnuSplitScene0 = new System.Windows.Forms.ToolStripMenuItem();
			mnuSplitScene1 = new System.Windows.Forms.ToolStripMenuItem();
			mnuSplitScene2 = new System.Windows.Forms.ToolStripMenuItem();
			mnuSplitSceneCustom = new System.Windows.Forms.ToolStripMenuItem();
			pbarsplit = new System.Windows.Forms.ToolStripSeparator();
			mnuTop20 = new System.Windows.Forms.ToolStripMenuItem();
			pbaryb = new System.Windows.Forms.ToolStripSeparator();
			mnuyBook = new System.Windows.Forms.ToolStripMenuItem();
			ViewInReverseOrderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ClearImageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuEdit = new System.Windows.Forms.ToolStripMenuItem();
			UndoCtrlZToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			RedoCtrlYToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator14 = new System.Windows.Forms.ToolStripSeparator();
			mnuBarCopy = new System.Windows.Forms.ToolStripMenuItem();
			mnuBarPaste = new System.Windows.Forms.ToolStripMenuItem();
			pbarPaste = new System.Windows.Forms.ToolStripSeparator();
			mnuFind = new System.Windows.Forms.ToolStripMenuItem();
			mnuFindNext = new System.Windows.Forms.ToolStripMenuItem();
			mnuFindPrev = new System.Windows.Forms.ToolStripMenuItem();
			mnuReplace = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator11 = new System.Windows.Forms.ToolStripSeparator();
			ClearSelectedHighlightToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuSpellMenu = new System.Windows.Forms.ToolStripMenuItem();
			mnuInstallDictionary = new System.Windows.Forms.ToolStripMenuItem();
			mnuCheckNow = new System.Windows.Forms.ToolStripMenuItem();
			mnuClear = new System.Windows.Forms.ToolStripMenuItem();
			mnuSpellingOn = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
			OpenDictionaryFolderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			SettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuSettings = new System.Windows.Forms.ToolStripMenuItem();
			mnuSelectFont = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
			mnuMarkKnownChar = new System.Windows.Forms.ToolStripMenuItem();
			mnuMarkKnownLocations = new System.Windows.Forms.ToolStripMenuItem();
			mnuMarkKnownItems = new System.Windows.Forms.ToolStripMenuItem();
			ClickableHyperlinksToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
			SetFontColourToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			SetBackgroundColourToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			CustomColoursToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			SetCharacterHighlightToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			SetLocationsColourToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			SetItemsColourToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			DefaultsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator15 = new System.Windows.Forms.ToolStripSeparator();
			SetSpellCheckColourToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			tsmDefaultSpellColour = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator16 = new System.Windows.Forms.ToolStripSeparator();
			SetHighlightColourToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator();
			SetParagraphIndentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			AllowTABInEditorWindowToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			UseRightctrlForDBCSEntryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			HideFontBarToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator17 = new System.Windows.Forms.ToolStripSeparator();
			CapitaliseFirstLetterOfSentenceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			AlwaysCapitaliseIToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			TypewriterSoundsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuHelp = new System.Windows.Forms.ToolStripMenuItem();
			ManualToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuWritingTips = new System.Windows.Forms.ToolStripMenuItem();
			KeyboardShortcutsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			StatusRatingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			SpecialCodesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			TimerWC = new System.Windows.Forms.Timer(components);
			TimerBackup = new System.Windows.Forms.Timer(components);
			ImageList1 = new System.Windows.Forms.ImageList(components);
			TimerExit = new System.Windows.Forms.Timer(components);
			txtMain = new System.Windows.Forms.RichTextBox();
			ctxRC = new System.Windows.Forms.ContextMenuStrip(components);
			ctxCut = new System.Windows.Forms.ToolStripMenuItem();
			ctxCopy = new System.Windows.Forms.ToolStripMenuItem();
			ctxPaste = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
			ctxCutAsTitle = new System.Windows.Forms.ToolStripMenuItem();
			ctxCutAsDesc = new System.Windows.Forms.ToolStripMenuItem();
			tsbSepDict = new System.Windows.Forms.ToolStripSeparator();
			ctxAddToDict = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();
			AddSelectionAsNewCharacterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			CreateLocationFromSelectionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			CreateItemFromSelectionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator18 = new System.Windows.Forms.ToolStripSeparator();
			InsertLinkToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ReplaceWithToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ctxDictLookup = new System.Windows.Forms.ToolStripMenuItem();
			ctxThesLookup = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator8 = new System.Windows.Forms.ToolStripSeparator();
			ctxFGColour = new System.Windows.Forms.ToolStripMenuItem();
			ctxBGColour = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
			FullScreenEditorToolStripMenu = new System.Windows.Forms.ToolStripMenuItem();
			FullScreenEditorWithMarginsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			TiledEditorWindowsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripFontbar = new System.Windows.Forms.ToolStrip();
			tsbCopy = new System.Windows.Forms.ToolStripButton();
			tsbCut = new System.Windows.Forms.ToolStripButton();
			tsbPaste = new System.Windows.Forms.ToolStripButton();
			ToolStripSeparator20 = new System.Windows.Forms.ToolStripSeparator();
			tsbBold = new System.Windows.Forms.ToolStripButton();
			tsbItalic = new System.Windows.Forms.ToolStripButton();
			tsbUnderline = new System.Windows.Forms.ToolStripButton();
			cmbFontSize = new System.Windows.Forms.ToolStripComboBox();
			ToolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
			cmbFont = new System.Windows.Forms.ToolStripComboBox();
			tssStrikeThru = new System.Windows.Forms.ToolStripButton();
			tssClearSelectedFormatting = new System.Windows.Forms.ToolStripButton();
			cmdComment = new System.Windows.Forms.ToolStripButton();
			ToolStripSeparator10 = new System.Windows.Forms.ToolStripSeparator();
			tsbReadAloud = new System.Windows.Forms.ToolStripButton();
			tsbStopReading = new System.Windows.Forms.ToolStripButton();
			tsbSetupSpeech = new System.Windows.Forms.ToolStripButton();
			ToolStripSeparator12 = new System.Windows.Forms.ToolStripSeparator();
			tsmHighlight = new System.Windows.Forms.ToolStripDropDownButton();
			ToolStripSeparator13 = new System.Windows.Forms.ToolStripSeparator();
			ClearSelectedHighlightToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator19 = new System.Windows.Forms.ToolStripSeparator();
			tsbLeftAlign = new System.Windows.Forms.ToolStripButton();
			tsbAlignCentre = new System.Windows.Forms.ToolStripButton();
			tsbAlignRight = new System.Windows.Forms.ToolStripButton();
			ToolStripSeparator21 = new System.Windows.Forms.ToolStripSeparator();
			StatusStrip1 = new System.Windows.Forms.StatusStrip();
			tssStatus = new System.Windows.Forms.ToolStripStatusLabel();
			tssChaptername = new System.Windows.Forms.ToolStripStatusLabel();
			tssSceneWordCount = new System.Windows.Forms.ToolStripStatusLabel();
			tssToday = new System.Windows.Forms.ToolStripStatusLabel();
			tssPrintStatus = new System.Windows.Forms.ToolStripStatusLabel();
			tssSpeed = new System.Windows.Forms.ToolStripStatusLabel();
			tssFilename = new System.Windows.Forms.ToolStripStatusLabel();
			TableChapterSceneSelect = new System.Windows.Forms.TableLayoutPanel();
			Label1 = new System.Windows.Forms.Label();
			Label4 = new System.Windows.Forms.Label();
			cmbChapter = new System.Windows.Forms.ComboBox();
			cmbScene = new System.Windows.Forms.ComboBox();
			cmbField0 = new System.Windows.Forms.ComboBox();
			lblField2 = new System.Windows.Forms.Label();
			lblField3 = new System.Windows.Forms.Label();
			cmbStatus = new System.Windows.Forms.ComboBox();
			cmbField1 = new System.Windows.Forms.ComboBox();
			lblField0 = new System.Windows.Forms.Label();
			cmbField3 = new System.Windows.Forms.ComboBox();
			lblField1 = new System.Windows.Forms.Label();
			cmbField2 = new System.Windows.Forms.ComboBox();
			TableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
			txtOutcome = new System.Windows.Forms.TextBox();
			txtConflict = new System.Windows.Forms.TextBox();
			txtGoal = new System.Windows.Forms.TextBox();
			fraDHM = new System.Windows.Forms.GroupBox();
			cmbHour = new System.Windows.Forms.ComboBox();
			txtDay = new System.Windows.Forms.TextBox();
			cmbMinute = new System.Windows.Forms.ComboBox();
			_Label7_0 = new System.Windows.Forms.Label();
			_Label7_1 = new System.Windows.Forms.Label();
			_Label7_2 = new System.Windows.Forms.Label();
			fraLasts = new System.Windows.Forms.GroupBox();
			cmbLastsHours = new System.Windows.Forms.ComboBox();
			txtLastsDays = new System.Windows.Forms.TextBox();
			cmbLastsMinutes = new System.Windows.Forms.ComboBox();
			_Label7_5 = new System.Windows.Forms.Label();
			_Label7_4 = new System.Windows.Forms.Label();
			_Label7_3 = new System.Windows.Forms.Label();
			TableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel();
			Label5 = new System.Windows.Forms.Label();
			Panel2 = new System.Windows.Forms.Panel();
			TableLayoutPanel6 = new System.Windows.Forms.TableLayoutPanel();
			lblUnusedIndicator = new System.Windows.Forms.Label();
			TabControl2 = new System.Windows.Forms.TabControl();
			TabContent = new System.Windows.Forms.TabPage();
			PanelMainTextPadding = new System.Windows.Forms.Panel();
			TabDetails = new System.Windows.Forms.TabPage();
			TableLayoutMainDetails = new System.Windows.Forms.TableLayoutPanel();
			Label8 = new System.Windows.Forms.Label();
			GroupBox2 = new System.Windows.Forms.GroupBox();
			lblStatus = new System.Windows.Forms.Label();
			Label12 = new System.Windows.Forms.Label();
			TabCharacters = new System.Windows.Forms.TabPage();
			TableLayoutPanel5 = new System.Windows.Forms.TableLayoutPanel();
			Label7 = new System.Windows.Forms.Label();
			Label6 = new System.Windows.Forms.Label();
			lblViewpointChar = new System.Windows.Forms.Label();
			lblFullName = new System.Windows.Forms.Label();
			lblSelectedCharID = new System.Windows.Forms.Label();
			TabPage1 = new System.Windows.Forms.TabPage();
			TableLayoutPanel7 = new System.Windows.Forms.TableLayoutPanel();
			TabItems = new System.Windows.Forms.TabPage();
			TableLayoutPanel9 = new System.Windows.Forms.TableLayoutPanel();
			TabNotes = new System.Windows.Forms.TabPage();
			tabImage = new System.Windows.Forms.TabPage();
			Picture1 = new System.Windows.Forms.PictureBox();
			txtImageFile = new System.Windows.Forms.TextBox();
			cmdClear = new System.Windows.Forms.Button();
			Image2 = new System.Windows.Forms.PictureBox();
			lblImageData = new System.Windows.Forms.Label();
			tabGoals = new System.Windows.Forms.TabPage();
			GroupBox4 = new System.Windows.Forms.GroupBox();
			optSubplot = new System.Windows.Forms.RadioButton();
			optPlot = new System.Windows.Forms.RadioButton();
			GroupBox3 = new System.Windows.Forms.GroupBox();
			TabPage2 = new System.Windows.Forms.TabPage();
			Panel3 = new System.Windows.Forms.Panel();
			PanelExportCondAll = new System.Windows.Forms.Panel();
			Label3 = new System.Windows.Forms.Label();
			PanelSpecificExportOpts = new System.Windows.Forms.Panel();
			chkWhenHTML = new System.Windows.Forms.CheckBox();
			chkWhenText = new System.Windows.Forms.CheckBox();
			chkWhenRTF = new System.Windows.Forms.CheckBox();
			chkWhenLatex = new System.Windows.Forms.CheckBox();
			Label2 = new System.Windows.Forms.Label();
			optConditions = new System.Windows.Forms.RadioButton();
			optAlways = new System.Windows.Forms.RadioButton();
			tabTime = new System.Windows.Forms.TabPage();
			fraSpecificDateTime = new System.Windows.Forms.GroupBox();
			Label11 = new System.Windows.Forms.Label();
			Label10 = new System.Windows.Forms.Label();
			cmdSwitchDateMode2 = new System.Windows.Forms.Button();
			lblSpecificTime = new System.Windows.Forms.Label();
			lblSpecificDate = new System.Windows.Forms.Label();
			tabRatings = new System.Windows.Forms.TabPage();
			GroupBox1 = new System.Windows.Forms.GroupBox();
			Splitter1 = new System.Windows.Forms.Splitter();
			ColorDialog1 = new System.Windows.Forms.ColorDialog();
			TimerFillFontCombo = new System.Windows.Forms.Timer(components);
			TableLayoutPanel8 = new System.Windows.Forms.TableLayoutPanel();
			TimerSpeed = new System.Windows.Forms.Timer(components);
			PanelTabs = new System.Windows.Forms.Panel();
			ctxListsRC.SuspendLayout();
			MainMenu1.SuspendLayout();
			ctxRC.SuspendLayout();
			ToolStripFontbar.SuspendLayout();
			StatusStrip1.SuspendLayout();
			TableChapterSceneSelect.SuspendLayout();
			TableLayoutPanel3.SuspendLayout();
			fraDHM.SuspendLayout();
			fraLasts.SuspendLayout();
			TableLayoutPanel4.SuspendLayout();
			Panel2.SuspendLayout();
			TableLayoutPanel6.SuspendLayout();
			TabControl2.SuspendLayout();
			TabContent.SuspendLayout();
			PanelMainTextPadding.SuspendLayout();
			TabDetails.SuspendLayout();
			TableLayoutMainDetails.SuspendLayout();
			GroupBox2.SuspendLayout();
			TabCharacters.SuspendLayout();
			TableLayoutPanel5.SuspendLayout();
			TabPage1.SuspendLayout();
			TableLayoutPanel7.SuspendLayout();
			TabItems.SuspendLayout();
			TableLayoutPanel9.SuspendLayout();
			TabNotes.SuspendLayout();
			tabImage.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)Picture1).BeginInit();
			((System.ComponentModel.ISupportInitialize)Image2).BeginInit();
			tabGoals.SuspendLayout();
			GroupBox4.SuspendLayout();
			GroupBox3.SuspendLayout();
			TabPage2.SuspendLayout();
			Panel3.SuspendLayout();
			PanelExportCondAll.SuspendLayout();
			PanelSpecificExportOpts.SuspendLayout();
			tabTime.SuspendLayout();
			fraSpecificDateTime.SuspendLayout();
			tabRatings.SuspendLayout();
			GroupBox1.SuspendLayout();
			TableLayoutPanel8.SuspendLayout();
			PanelTabs.SuspendLayout();
			SuspendLayout();
			cmdEditChar.AccessibleName = "Edit Character";
			cmdEditChar.AutoSize = true;
			cmdEditChar.BackColor = System.Drawing.SystemColors.Control;
			cmdEditChar.Cursor = System.Windows.Forms.Cursors.Default;
			cmdEditChar.Dock = System.Windows.Forms.DockStyle.Fill;
			cmdEditChar.Font = new System.Drawing.Font("Segoe UI", 10f);
			cmdEditChar.ForeColor = System.Drawing.SystemColors.ControlText;
			cmdEditChar.Location = new System.Drawing.Point(681, 3);
			cmdEditChar.Name = "cmdEditChar";
			cmdEditChar.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmdEditChar.Size = new System.Drawing.Size(101, 34);
			cmdEditChar.TabIndex = 4;
			cmdEditChar.Text = "Edit";
			ToolTip1.SetToolTip(cmdEditChar, "Edit selected character");
			cmdEditChar.UseVisualStyleBackColor = true;
			cmdAddChar.AccessibleName = "Add Character";
			cmdAddChar.AutoSize = true;
			cmdAddChar.BackColor = System.Drawing.SystemColors.Control;
			cmdAddChar.Cursor = System.Windows.Forms.Cursors.Default;
			cmdAddChar.Dock = System.Windows.Forms.DockStyle.Fill;
			cmdAddChar.Font = new System.Drawing.Font("Segoe UI", 10f);
			cmdAddChar.ForeColor = System.Drawing.SystemColors.ControlText;
			cmdAddChar.Location = new System.Drawing.Point(788, 3);
			cmdAddChar.Name = "cmdAddChar";
			cmdAddChar.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmdAddChar.Size = new System.Drawing.Size(105, 34);
			cmdAddChar.TabIndex = 5;
			cmdAddChar.Text = "Add";
			ToolTip1.SetToolTip(cmdAddChar, "Add a new character");
			cmdAddChar.UseVisualStyleBackColor = true;
			cmbViewpoint.AccessibleName = "Viewpoint character";
			cmbViewpoint.BackColor = System.Drawing.SystemColors.Window;
			cmbViewpoint.Cursor = System.Windows.Forms.Cursors.Default;
			cmbViewpoint.Dock = System.Windows.Forms.DockStyle.Fill;
			cmbViewpoint.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			cmbViewpoint.Font = new System.Drawing.Font("Segoe UI", 10f);
			cmbViewpoint.ForeColor = System.Drawing.SystemColors.WindowText;
			cmbViewpoint.Location = new System.Drawing.Point(136, 7);
			cmbViewpoint.Margin = new System.Windows.Forms.Padding(3, 7, 3, 3);
			cmbViewpoint.Name = "cmbViewpoint";
			cmbViewpoint.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmbViewpoint.Size = new System.Drawing.Size(539, 25);
			cmbViewpoint.TabIndex = 3;
			ToolTip1.SetToolTip(cmbViewpoint, "Viewpoint character for this scene");
			lblGoal.BackColor = System.Drawing.Color.FromArgb(0, 192, 0);
			lblGoal.Cursor = System.Windows.Forms.Cursors.Default;
			lblGoal.Dock = System.Windows.Forms.DockStyle.Fill;
			lblGoal.Font = new System.Drawing.Font("Segoe UI", 8f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			lblGoal.ForeColor = System.Drawing.SystemColors.HighlightText;
			lblGoal.Location = new System.Drawing.Point(3, 3);
			lblGoal.Margin = new System.Windows.Forms.Padding(3);
			lblGoal.Name = "lblGoal";
			lblGoal.RightToLeft = System.Windows.Forms.RightToLeft.No;
			lblGoal.Size = new System.Drawing.Size(111, 26);
			lblGoal.TabIndex = 26;
			lblGoal.Text = "Goal";
			lblGoal.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			ToolTip1.SetToolTip(lblGoal, "Goal");
			lblConflict.BackColor = System.Drawing.Color.FromArgb(192, 192, 0);
			lblConflict.Cursor = System.Windows.Forms.Cursors.Default;
			lblConflict.Dock = System.Windows.Forms.DockStyle.Fill;
			lblConflict.Font = new System.Drawing.Font("Segoe UI", 8f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			lblConflict.ForeColor = System.Drawing.SystemColors.HighlightText;
			lblConflict.Location = new System.Drawing.Point(3, 35);
			lblConflict.Margin = new System.Windows.Forms.Padding(3);
			lblConflict.Name = "lblConflict";
			lblConflict.RightToLeft = System.Windows.Forms.RightToLeft.No;
			lblConflict.Size = new System.Drawing.Size(111, 26);
			lblConflict.TabIndex = 25;
			lblConflict.Text = "Conflict";
			lblConflict.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			ToolTip1.SetToolTip(lblConflict, "Conflict");
			lblOutcome.BackColor = System.Drawing.Color.FromArgb(192, 0, 0);
			lblOutcome.Cursor = System.Windows.Forms.Cursors.Default;
			lblOutcome.Dock = System.Windows.Forms.DockStyle.Fill;
			lblOutcome.Font = new System.Drawing.Font("Segoe UI", 8f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			lblOutcome.ForeColor = System.Drawing.SystemColors.HighlightText;
			lblOutcome.Location = new System.Drawing.Point(3, 67);
			lblOutcome.Margin = new System.Windows.Forms.Padding(3);
			lblOutcome.Name = "lblOutcome";
			lblOutcome.RightToLeft = System.Windows.Forms.RightToLeft.No;
			lblOutcome.Size = new System.Drawing.Size(111, 27);
			lblOutcome.TabIndex = 24;
			lblOutcome.Text = "Outcome";
			lblOutcome.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			ToolTip1.SetToolTip(lblOutcome, "Outcome");
			cmdPrev.AccessibleName = "Previous Scene";
			cmdPrev.AutoSize = true;
			cmdPrev.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			cmdPrev.Dock = System.Windows.Forms.DockStyle.Fill;
			cmdPrev.Font = new System.Drawing.Font("Segoe UI", 10f);
			cmdPrev.Location = new System.Drawing.Point(1, 1);
			cmdPrev.Margin = new System.Windows.Forms.Padding(1);
			cmdPrev.MinimumSize = new System.Drawing.Size(80, 29);
			cmdPrev.Name = "cmdPrev";
			cmdPrev.Size = new System.Drawing.Size(80, 34);
			cmdPrev.TabIndex = 22;
			cmdPrev.Text = "&Prev";
			ToolTip1.SetToolTip(cmdPrev, "Save and display previous scene");
			cmdPrev.UseVisualStyleBackColor = true;
			cmdNext.AccessibleName = "Next Scene";
			cmdNext.AutoSize = true;
			cmdNext.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			cmdNext.Dock = System.Windows.Forms.DockStyle.Fill;
			cmdNext.Font = new System.Drawing.Font("Segoe UI", 10f);
			cmdNext.Location = new System.Drawing.Point(83, 1);
			cmdNext.Margin = new System.Windows.Forms.Padding(1);
			cmdNext.MinimumSize = new System.Drawing.Size(80, 29);
			cmdNext.Name = "cmdNext";
			cmdNext.Size = new System.Drawing.Size(80, 34);
			cmdNext.TabIndex = 23;
			cmdNext.Text = "&Next";
			ToolTip1.SetToolTip(cmdNext, "Save and show next scene");
			cmdNext.UseVisualStyleBackColor = true;
			cmdSave.AccessibleName = "Save";
			cmdSave.AutoSize = true;
			cmdSave.Dock = System.Windows.Forms.DockStyle.Fill;
			cmdSave.Font = new System.Drawing.Font("Segoe UI", 10f);
			cmdSave.Location = new System.Drawing.Point(707, 1);
			cmdSave.Margin = new System.Windows.Forms.Padding(1);
			cmdSave.MinimumSize = new System.Drawing.Size(80, 29);
			cmdSave.Name = "cmdSave";
			cmdSave.Size = new System.Drawing.Size(80, 34);
			cmdSave.TabIndex = 24;
			cmdSave.Text = "&Save";
			ToolTip1.SetToolTip(cmdSave, "Save current scene");
			cmdSave.UseVisualStyleBackColor = true;
			cmdSaveAndExit.AccessibleName = "Save and exit";
			cmdSaveAndExit.AutoSize = true;
			cmdSaveAndExit.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			cmdSaveAndExit.Dock = System.Windows.Forms.DockStyle.Fill;
			cmdSaveAndExit.Font = new System.Drawing.Font("Segoe UI", 10f);
			cmdSaveAndExit.Location = new System.Drawing.Point(789, 1);
			cmdSaveAndExit.Margin = new System.Windows.Forms.Padding(1);
			cmdSaveAndExit.MinimumSize = new System.Drawing.Size(120, 29);
			cmdSaveAndExit.Name = "cmdSaveAndExit";
			cmdSaveAndExit.Size = new System.Drawing.Size(120, 34);
			cmdSaveAndExit.TabIndex = 25;
			cmdSaveAndExit.Text = "Save and &Exit";
			ToolTip1.SetToolTip(cmdSaveAndExit, "Save and close");
			cmdSaveAndExit.UseVisualStyleBackColor = true;
			ListCharAll.AllowDrop = true;
			ListCharAll.BackColor = System.Drawing.SystemColors.Window;
			ListCharAll.BorderStyle = System.Windows.Forms.BorderStyle.None;
			ListCharAll.Columns.AddRange(new System.Windows.Forms.ColumnHeader[2]
			{
				__ListChar_1_ColumnHeader_1,
				__ListChar_1_ColumnHeader_2
			});
			ListCharAll.ContextMenuStrip = ctxListsRC;
			ListCharAll.Dock = System.Windows.Forms.DockStyle.Fill;
			ListCharAll.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			ListCharAll.ForeColor = System.Drawing.SystemColors.WindowText;
			ListCharAll.FullRowSelect = true;
			ListCharAll.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
			ListCharAll.HideSelection = false;
			ListCharAll.Location = new System.Drawing.Point(442, 6);
			ListCharAll.Name = "ListCharAll";
			ListCharAll.Size = new System.Drawing.Size(430, 218);
			ListCharAll.TabIndex = 29;
			ToolTip1.SetToolTip(ListCharAll, "Double-click to edit");
			ListCharAll.UseCompatibleStateImageBehavior = false;
			ListCharAll.View = System.Windows.Forms.View.Details;
			__ListChar_1_ColumnHeader_1.Text = "All characters";
			__ListChar_1_ColumnHeader_1.Width = 116;
			__ListChar_1_ColumnHeader_2.Text = "Full Name";
			__ListChar_1_ColumnHeader_2.Width = 170;
			ctxListsRC.Items.AddRange(new System.Windows.Forms.ToolStripItem[2]
			{
				tsmAddListItem,
				tsmEditListItem
			});
			ctxListsRC.Name = "ctxCharRC";
			ctxListsRC.Size = new System.Drawing.Size(113, 56);
			tsmAddListItem.Name = "tsmAddListItem";
			tsmAddListItem.Size = new System.Drawing.Size(112, 26);
			tsmAddListItem.Text = "New";
			tsmEditListItem.Name = "tsmEditListItem";
			tsmEditListItem.Size = new System.Drawing.Size(112, 26);
			tsmEditListItem.Text = "Edit";
			ListCharUsed.AllowDrop = true;
			ListCharUsed.BackColor = System.Drawing.SystemColors.Window;
			ListCharUsed.BorderStyle = System.Windows.Forms.BorderStyle.None;
			ListCharUsed.Columns.AddRange(new System.Windows.Forms.ColumnHeader[2]
			{
				__ListChar_0_ColumnHeader_1,
				__ListChar_0_ColumnHeader_2
			});
			ListCharUsed.ContextMenuStrip = ctxListsRC;
			ListCharUsed.Dock = System.Windows.Forms.DockStyle.Fill;
			ListCharUsed.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			ListCharUsed.ForeColor = System.Drawing.SystemColors.WindowText;
			ListCharUsed.FullRowSelect = true;
			ListCharUsed.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
			ListCharUsed.HideSelection = false;
			ListCharUsed.Location = new System.Drawing.Point(6, 6);
			ListCharUsed.Name = "ListCharUsed";
			ListCharUsed.Size = new System.Drawing.Size(430, 218);
			ListCharUsed.TabIndex = 28;
			ToolTip1.SetToolTip(ListCharUsed, "Double-click to edit");
			ListCharUsed.UseCompatibleStateImageBehavior = false;
			ListCharUsed.View = System.Windows.Forms.View.Details;
			__ListChar_0_ColumnHeader_1.Text = "Present in scene";
			__ListChar_0_ColumnHeader_1.Width = 130;
			__ListChar_0_ColumnHeader_2.Text = "Full Name";
			__ListChar_0_ColumnHeader_2.Width = 170;
			txtCharDesc.BackColor = System.Drawing.SystemColors.Window;
			txtCharDesc.Cursor = System.Windows.Forms.Cursors.Arrow;
			txtCharDesc.Dock = System.Windows.Forms.DockStyle.Fill;
			txtCharDesc.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtCharDesc.ForeColor = System.Drawing.SystemColors.WindowText;
			txtCharDesc.HideSelection = false;
			txtCharDesc.Location = new System.Drawing.Point(3, 3);
			txtCharDesc.MaxLength = 0;
			txtCharDesc.Name = "txtCharDesc";
			txtCharDesc.ReadOnly = true;
			txtCharDesc.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtCharDesc.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
			txtCharDesc.Size = new System.Drawing.Size(433, 152);
			txtCharDesc.TabIndex = 55;
			txtCharDesc.Text = "";
			ToolTip1.SetToolTip(txtCharDesc, "Character description - Double-click to edit");
			txtCharNotes.BackColor = System.Drawing.SystemColors.Window;
			txtCharNotes.Cursor = System.Windows.Forms.Cursors.Arrow;
			txtCharNotes.Dock = System.Windows.Forms.DockStyle.Fill;
			txtCharNotes.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtCharNotes.ForeColor = System.Drawing.SystemColors.WindowText;
			txtCharNotes.HideSelection = false;
			txtCharNotes.Location = new System.Drawing.Point(442, 3);
			txtCharNotes.MaxLength = 0;
			txtCharNotes.Name = "txtCharNotes";
			txtCharNotes.ReadOnly = true;
			txtCharNotes.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtCharNotes.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
			txtCharNotes.Size = new System.Drawing.Size(433, 152);
			txtCharNotes.TabIndex = 58;
			txtCharNotes.Text = "";
			ToolTip1.SetToolTip(txtCharNotes, "Double-click to edit");
			cmdSelectImage.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
			cmdSelectImage.BackColor = System.Drawing.SystemColors.Control;
			cmdSelectImage.Cursor = System.Windows.Forms.Cursors.Default;
			cmdSelectImage.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			cmdSelectImage.ForeColor = System.Drawing.SystemColors.ControlText;
			cmdSelectImage.Location = new System.Drawing.Point(822, 6);
			cmdSelectImage.Name = "cmdSelectImage";
			cmdSelectImage.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmdSelectImage.Size = new System.Drawing.Size(67, 39);
			cmdSelectImage.TabIndex = 27;
			cmdSelectImage.Text = "Select";
			ToolTip1.SetToolTip(cmdSelectImage, "I recommend a size no larger than 300-400 pixels wide. Huge images will be slow to load and should be resampled first.");
			cmdSelectImage.UseVisualStyleBackColor = true;
			cmdSwitchDateMode1.AccessibleName = "Switch to Specific Time";
			cmdSwitchDateMode1.Location = new System.Drawing.Point(288, 22);
			cmdSwitchDateMode1.Name = "cmdSwitchDateMode1";
			cmdSwitchDateMode1.Size = new System.Drawing.Size(39, 34);
			cmdSwitchDateMode1.TabIndex = 12;
			cmdSwitchDateMode1.Text = "Sw";
			ToolTip1.SetToolTip(cmdSwitchDateMode1, "Switch to other date mode");
			cmdSwitchDateMode1.UseVisualStyleBackColor = true;
			txtNotes.AcceptsTab = true;
			txtNotes.BackColor = System.Drawing.SystemColors.Window;
			txtNotes.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtNotes.Dock = System.Windows.Forms.DockStyle.Fill;
			txtNotes.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtNotes.ForeColor = System.Drawing.SystemColors.WindowText;
			txtNotes.Location = new System.Drawing.Point(3, 3);
			txtNotes.MaxLength = 0;
			txtNotes.Name = "txtNotes";
			txtNotes.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtNotes.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
			txtNotes.Size = new System.Drawing.Size(896, 450);
			txtNotes.TabIndex = 53;
			txtNotes.Text = "";
			ToolTip1.SetToolTip(txtNotes, "Enter any notes relevant to this scene");
			txtTags.Location = new System.Drawing.Point(119, 24);
			txtTags.Name = "txtTags";
			txtTags.Size = new System.Drawing.Size(658, 25);
			txtTags.TabIndex = 16;
			ToolTip1.SetToolTip(txtTags, "Separate tags with commas");
			ListLocUsed.AllowDrop = true;
			ListLocUsed.BackColor = System.Drawing.SystemColors.Window;
			ListLocUsed.BorderStyle = System.Windows.Forms.BorderStyle.None;
			ListLocUsed.Columns.AddRange(new System.Windows.Forms.ColumnHeader[1]
			{
				ColumnHeader1
			});
			ListLocUsed.ContextMenuStrip = ctxListsRC;
			ListLocUsed.Dock = System.Windows.Forms.DockStyle.Fill;
			ListLocUsed.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			ListLocUsed.ForeColor = System.Drawing.SystemColors.WindowText;
			ListLocUsed.FullRowSelect = true;
			ListLocUsed.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
			ListLocUsed.HideSelection = false;
			ListLocUsed.Location = new System.Drawing.Point(3, 3);
			ListLocUsed.Name = "ListLocUsed";
			ListLocUsed.Size = new System.Drawing.Size(442, 444);
			ListLocUsed.TabIndex = 29;
			ToolTip1.SetToolTip(ListLocUsed, "Double-click to edit");
			ListLocUsed.UseCompatibleStateImageBehavior = false;
			ListLocUsed.View = System.Windows.Forms.View.Details;
			ColumnHeader1.Text = "Present in scene";
			ColumnHeader1.Width = 318;
			ListLocAll.AllowDrop = true;
			ListLocAll.BackColor = System.Drawing.SystemColors.Window;
			ListLocAll.BorderStyle = System.Windows.Forms.BorderStyle.None;
			ListLocAll.Columns.AddRange(new System.Windows.Forms.ColumnHeader[1]
			{
				ColumnHeader3
			});
			ListLocAll.ContextMenuStrip = ctxListsRC;
			ListLocAll.Dock = System.Windows.Forms.DockStyle.Fill;
			ListLocAll.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			ListLocAll.ForeColor = System.Drawing.SystemColors.WindowText;
			ListLocAll.FullRowSelect = true;
			ListLocAll.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
			ListLocAll.HideSelection = false;
			ListLocAll.Location = new System.Drawing.Point(451, 3);
			ListLocAll.Name = "ListLocAll";
			ListLocAll.Size = new System.Drawing.Size(442, 444);
			ListLocAll.TabIndex = 30;
			ToolTip1.SetToolTip(ListLocAll, "Double-click to edit");
			ListLocAll.UseCompatibleStateImageBehavior = false;
			ListLocAll.View = System.Windows.Forms.View.Details;
			ColumnHeader3.Text = "All";
			ColumnHeader3.Width = 315;
			ListView1.AllowDrop = true;
			ListView1.BackColor = System.Drawing.SystemColors.Window;
			ListView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
			ListView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[1]
			{
				ColumnHeader2
			});
			ListView1.ContextMenuStrip = ctxListsRC;
			ListView1.Dock = System.Windows.Forms.DockStyle.Fill;
			ListView1.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			ListView1.ForeColor = System.Drawing.SystemColors.WindowText;
			ListView1.FullRowSelect = true;
			ListView1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
			ListView1.HideSelection = false;
			ListView1.Location = new System.Drawing.Point(347, 3);
			ListView1.Name = "ListView1";
			ListView1.Size = new System.Drawing.Size(338, 431);
			ListView1.TabIndex = 30;
			ToolTip1.SetToolTip(ListView1, "Double-click to edit");
			ListView1.UseCompatibleStateImageBehavior = false;
			ListView1.View = System.Windows.Forms.View.Details;
			ColumnHeader2.Text = "All";
			ColumnHeader2.Width = 315;
			ListView2.AllowDrop = true;
			ListView2.BackColor = System.Drawing.SystemColors.Window;
			ListView2.BorderStyle = System.Windows.Forms.BorderStyle.None;
			ListView2.Columns.AddRange(new System.Windows.Forms.ColumnHeader[1]
			{
				ColumnHeader4
			});
			ListView2.ContextMenuStrip = ctxListsRC;
			ListView2.Dock = System.Windows.Forms.DockStyle.Fill;
			ListView2.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			ListView2.ForeColor = System.Drawing.SystemColors.WindowText;
			ListView2.FullRowSelect = true;
			ListView2.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
			ListView2.HideSelection = false;
			ListView2.Location = new System.Drawing.Point(3, 3);
			ListView2.Name = "ListView2";
			ListView2.Size = new System.Drawing.Size(338, 431);
			ListView2.TabIndex = 29;
			ToolTip1.SetToolTip(ListView2, "Double-click to edit");
			ListView2.UseCompatibleStateImageBehavior = false;
			ListView2.View = System.Windows.Forms.View.Details;
			ColumnHeader4.Text = "Present in scene";
			ColumnHeader4.Width = 318;
			ListItemsAll.AllowDrop = true;
			ListItemsAll.BackColor = System.Drawing.SystemColors.Window;
			ListItemsAll.BorderStyle = System.Windows.Forms.BorderStyle.None;
			ListItemsAll.Columns.AddRange(new System.Windows.Forms.ColumnHeader[1]
			{
				ColumnHeader5
			});
			ListItemsAll.ContextMenuStrip = ctxListsRC;
			ListItemsAll.Dock = System.Windows.Forms.DockStyle.Fill;
			ListItemsAll.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			ListItemsAll.ForeColor = System.Drawing.SystemColors.WindowText;
			ListItemsAll.FullRowSelect = true;
			ListItemsAll.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
			ListItemsAll.HideSelection = false;
			ListItemsAll.Location = new System.Drawing.Point(451, 3);
			ListItemsAll.Name = "ListItemsAll";
			ListItemsAll.Size = new System.Drawing.Size(442, 444);
			ListItemsAll.TabIndex = 30;
			ToolTip1.SetToolTip(ListItemsAll, "Double-click to edit");
			ListItemsAll.UseCompatibleStateImageBehavior = false;
			ListItemsAll.View = System.Windows.Forms.View.Details;
			ColumnHeader5.Text = "All";
			ColumnHeader5.Width = 315;
			listItemsUsed.AllowDrop = true;
			listItemsUsed.BackColor = System.Drawing.SystemColors.Window;
			listItemsUsed.BorderStyle = System.Windows.Forms.BorderStyle.None;
			listItemsUsed.Columns.AddRange(new System.Windows.Forms.ColumnHeader[1]
			{
				ColumnHeader6
			});
			listItemsUsed.ContextMenuStrip = ctxListsRC;
			listItemsUsed.Dock = System.Windows.Forms.DockStyle.Fill;
			listItemsUsed.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			listItemsUsed.ForeColor = System.Drawing.SystemColors.WindowText;
			listItemsUsed.FullRowSelect = true;
			listItemsUsed.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
			listItemsUsed.HideSelection = false;
			listItemsUsed.Location = new System.Drawing.Point(3, 3);
			listItemsUsed.Name = "listItemsUsed";
			listItemsUsed.Size = new System.Drawing.Size(442, 444);
			listItemsUsed.TabIndex = 29;
			ToolTip1.SetToolTip(listItemsUsed, "Double-click to edit");
			listItemsUsed.UseCompatibleStateImageBehavior = false;
			listItemsUsed.View = System.Windows.Forms.View.Details;
			ColumnHeader6.Text = "Present in scene";
			ColumnHeader6.Width = 318;
			optAction.AccessibleName = "Action Scene";
			optAction.AutoSize = true;
			optAction.Checked = true;
			optAction.Location = new System.Drawing.Point(6, 29);
			optAction.Name = "optAction";
			optAction.Size = new System.Drawing.Size(66, 23);
			optAction.TabIndex = 1;
			optAction.TabStop = true;
			optAction.Text = "Action";
			ToolTip1.SetToolTip(optAction, "A scene where characters initiate events");
			optAction.UseVisualStyleBackColor = true;
			optReaction.AccessibleName = "Reaction scene";
			optReaction.Location = new System.Drawing.Point(104, 23);
			optReaction.Name = "optReaction";
			optReaction.Size = new System.Drawing.Size(109, 39);
			optReaction.TabIndex = 2;
			optReaction.Text = "Reaction";
			ToolTip1.SetToolTip(optReaction, "A scene where characters react to events in the previous scene");
			optReaction.UseVisualStyleBackColor = true;
			chkAppendToPrev.AutoSize = true;
			chkAppendToPrev.Location = new System.Drawing.Point(546, 17);
			chkAppendToPrev.Name = "chkAppendToPrev";
			chkAppendToPrev.Size = new System.Drawing.Size(187, 23);
			chkAppendToPrev.TabIndex = 19;
			chkAppendToPrev.Text = "Append to previous scene";
			ToolTip1.SetToolTip(chkAppendToPrev, "When ticked, this scene is printed/exported as part of the previous scene.");
			chkAppendToPrev.UseVisualStyleBackColor = true;
			chkWhenRTFChapters.AutoSize = true;
			chkWhenRTFChapters.Location = new System.Drawing.Point(3, 102);
			chkWhenRTFChapters.Name = "chkWhenRTFChapters";
			chkWhenRTFChapters.Size = new System.Drawing.Size(170, 23);
			chkWhenRTFChapters.TabIndex = 0;
			chkWhenRTFChapters.Text = "Exporting RTF Chapters";
			ToolTip1.SetToolTip(chkWhenRTFChapters, "When exporting RTF to individual chapters");
			chkWhenRTFChapters.UseVisualStyleBackColor = true;
			txtDesc.AcceptsTab = true;
			txtDesc.AccessibleName = "Scene Description";
			txtDesc.BackColor = System.Drawing.SystemColors.Window;
			TableLayoutMainDetails.SetColumnSpan(txtDesc, 3);
			txtDesc.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtDesc.Dock = System.Windows.Forms.DockStyle.Fill;
			txtDesc.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtDesc.ForeColor = System.Drawing.SystemColors.WindowText;
			txtDesc.Location = new System.Drawing.Point(139, 43);
			txtDesc.Margin = new System.Windows.Forms.Padding(6, 3, 6, 3);
			txtDesc.MaxLength = 0;
			txtDesc.Name = "txtDesc";
			txtDesc.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtDesc.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
			txtDesc.Size = new System.Drawing.Size(751, 301);
			txtDesc.TabIndex = 59;
			txtDesc.Text = "";
			ToolTip1.SetToolTip(txtDesc, "A summary of the scene content (Used to generate the auto synopsis)");
			txtTitle.AcceptsReturn = true;
			txtTitle.AccessibleName = "Scene Title";
			txtTitle.BackColor = System.Drawing.SystemColors.Window;
			txtTitle.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtTitle.Dock = System.Windows.Forms.DockStyle.Fill;
			txtTitle.Font = new System.Drawing.Font("Segoe UI", 10f);
			txtTitle.ForeColor = System.Drawing.SystemColors.WindowText;
			txtTitle.Location = new System.Drawing.Point(3, 3);
			txtTitle.MaxLength = 0;
			txtTitle.Name = "txtTitle";
			txtTitle.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtTitle.Size = new System.Drawing.Size(478, 25);
			txtTitle.TabIndex = 1;
			txtTitle.Text = "New Scene";
			ToolTip1.SetToolTip(txtTitle, "A one-line title for this scene");
			MainMenu1.Items.AddRange(new System.Windows.Forms.ToolStripItem[6]
			{
				mnuFile,
				mnuScene,
				mnuEdit,
				mnuSpellMenu,
				SettingsToolStripMenuItem,
				mnuHelp
			});
			MainMenu1.Location = new System.Drawing.Point(0, 0);
			MainMenu1.Name = "MainMenu1";
			MainMenu1.Size = new System.Drawing.Size(916, 29);
			MainMenu1.TabIndex = 72;
			mnuFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[4]
			{
				mnuSave,
				mnuSaveAndExit,
				pbar1,
				mnuExit
			});
			mnuFile.Name = "mnuFile";
			mnuFile.Size = new System.Drawing.Size(46, 25);
			mnuFile.Text = "File";
			mnuSave.Name = "mnuSave";
			mnuSave.Size = new System.Drawing.Size(171, 26);
			mnuSave.Text = "Save";
			mnuSaveAndExit.Name = "mnuSaveAndExit";
			mnuSaveAndExit.Size = new System.Drawing.Size(171, 26);
			mnuSaveAndExit.Text = "Save and Exit";
			pbar1.Name = "pbar1";
			pbar1.Size = new System.Drawing.Size(168, 6);
			mnuExit.Name = "mnuExit";
			mnuExit.Size = new System.Drawing.Size(171, 26);
			mnuExit.Text = "Close";
			mnuScene.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[15]
			{
				mnuInsertScene,
				mnuNewScene,
				pbar12,
				mnuPrintScene,
				scnsplit,
				mnuSplitScene0,
				mnuSplitScene1,
				mnuSplitScene2,
				mnuSplitSceneCustom,
				pbarsplit,
				mnuTop20,
				pbaryb,
				mnuyBook,
				ViewInReverseOrderToolStripMenuItem,
				ClearImageToolStripMenuItem
			});
			mnuScene.Name = "mnuScene";
			mnuScene.Size = new System.Drawing.Size(63, 25);
			mnuScene.Text = "Scene";
			mnuInsertScene.Name = "mnuInsertScene";
			mnuInsertScene.Size = new System.Drawing.Size(277, 26);
			mnuInsertScene.Text = "Insert Scene (before current)";
			mnuNewScene.Name = "mnuNewScene";
			mnuNewScene.Size = new System.Drawing.Size(277, 26);
			mnuNewScene.Text = "Add Scene (after current)";
			pbar12.Name = "pbar12";
			pbar12.Size = new System.Drawing.Size(274, 6);
			mnuPrintScene.Name = "mnuPrintScene";
			mnuPrintScene.Size = new System.Drawing.Size(277, 26);
			mnuPrintScene.Text = "Print Scene";
			scnsplit.Name = "scnsplit";
			scnsplit.Size = new System.Drawing.Size(274, 6);
			mnuSplitScene0.Name = "mnuSplitScene0";
			mnuSplitScene0.Size = new System.Drawing.Size(277, 26);
			mnuSplitScene0.Tag = "* * *";
			mnuSplitScene0.Text = "Split scene on '* * *'";
			mnuSplitScene1.Name = "mnuSplitScene1";
			mnuSplitScene1.Size = new System.Drawing.Size(277, 26);
			mnuSplitScene1.Tag = "***";
			mnuSplitScene1.Text = "Split scene on '***'";
			mnuSplitScene2.Name = "mnuSplitScene2";
			mnuSplitScene2.Size = new System.Drawing.Size(277, 26);
			mnuSplitScene2.Tag = "#";
			mnuSplitScene2.Text = "Split scene on '#'";
			mnuSplitSceneCustom.Name = "mnuSplitSceneCustom";
			mnuSplitSceneCustom.Size = new System.Drawing.Size(277, 26);
			mnuSplitSceneCustom.Text = "Split scene on custom";
			pbarsplit.Name = "pbarsplit";
			pbarsplit.Size = new System.Drawing.Size(274, 6);
			mnuTop20.Name = "mnuTop20";
			mnuTop20.Size = new System.Drawing.Size(277, 26);
			mnuTop20.Text = "Show word usage";
			pbaryb.Name = "pbaryb";
			pbaryb.Size = new System.Drawing.Size(274, 6);
			mnuyBook.Name = "mnuyBook";
			mnuyBook.Size = new System.Drawing.Size(277, 26);
			mnuyBook.Text = "View scene in yBook";
			ViewInReverseOrderToolStripMenuItem.Name = "ViewInReverseOrderToolStripMenuItem";
			ViewInReverseOrderToolStripMenuItem.Size = new System.Drawing.Size(277, 26);
			ViewInReverseOrderToolStripMenuItem.Text = "View in reverse order";
			ClearImageToolStripMenuItem.Name = "ClearImageToolStripMenuItem";
			ClearImageToolStripMenuItem.Size = new System.Drawing.Size(277, 26);
			ClearImageToolStripMenuItem.Text = "Remove Picture";
			mnuEdit.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[12]
			{
				UndoCtrlZToolStripMenuItem,
				RedoCtrlYToolStripMenuItem,
				ToolStripSeparator14,
				mnuBarCopy,
				mnuBarPaste,
				pbarPaste,
				mnuFind,
				mnuFindNext,
				mnuFindPrev,
				mnuReplace,
				ToolStripSeparator11,
				ClearSelectedHighlightToolStripMenuItem
			});
			mnuEdit.Name = "mnuEdit";
			mnuEdit.Size = new System.Drawing.Size(48, 25);
			mnuEdit.Text = "Edit";
			UndoCtrlZToolStripMenuItem.Name = "UndoCtrlZToolStripMenuItem";
			UndoCtrlZToolStripMenuItem.Size = new System.Drawing.Size(243, 26);
			UndoCtrlZToolStripMenuItem.Text = "Undo (Ctrl-Z)";
			RedoCtrlYToolStripMenuItem.Name = "RedoCtrlYToolStripMenuItem";
			RedoCtrlYToolStripMenuItem.Size = new System.Drawing.Size(243, 26);
			RedoCtrlYToolStripMenuItem.Text = "Redo (Ctrl-Y)";
			ToolStripSeparator14.Name = "ToolStripSeparator14";
			ToolStripSeparator14.Size = new System.Drawing.Size(240, 6);
			mnuBarCopy.Name = "mnuBarCopy";
			mnuBarCopy.Size = new System.Drawing.Size(243, 26);
			mnuBarCopy.Text = "Copy";
			mnuBarPaste.Name = "mnuBarPaste";
			mnuBarPaste.Size = new System.Drawing.Size(243, 26);
			mnuBarPaste.Text = "Paste";
			pbarPaste.Name = "pbarPaste";
			pbarPaste.Size = new System.Drawing.Size(240, 6);
			mnuFind.Name = "mnuFind";
			mnuFind.Size = new System.Drawing.Size(243, 26);
			mnuFind.Text = "Find (Ctrl-F)";
			mnuFindNext.Name = "mnuFindNext";
			mnuFindNext.Size = new System.Drawing.Size(243, 26);
			mnuFindNext.Text = "Find Next (F3)";
			mnuFindPrev.Name = "mnuFindPrev";
			mnuFindPrev.Size = new System.Drawing.Size(243, 26);
			mnuFindPrev.Text = "Find Previous (Shift-F3)";
			mnuReplace.Name = "mnuReplace";
			mnuReplace.Size = new System.Drawing.Size(243, 26);
			mnuReplace.Text = "Replace (Ctrl-H)";
			ToolStripSeparator11.Name = "ToolStripSeparator11";
			ToolStripSeparator11.Size = new System.Drawing.Size(240, 6);
			ClearSelectedHighlightToolStripMenuItem.Name = "ClearSelectedHighlightToolStripMenuItem";
			ClearSelectedHighlightToolStripMenuItem.Size = new System.Drawing.Size(243, 26);
			ClearSelectedHighlightToolStripMenuItem.Text = "Clear selected highlight";
			mnuSpellMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[6]
			{
				mnuInstallDictionary,
				mnuCheckNow,
				mnuClear,
				mnuSpellingOn,
				ToolStripSeparator2,
				OpenDictionaryFolderToolStripMenuItem
			});
			mnuSpellMenu.Name = "mnuSpellMenu";
			mnuSpellMenu.Size = new System.Drawing.Size(78, 25);
			mnuSpellMenu.Text = "Spelling";
			mnuInstallDictionary.Name = "mnuInstallDictionary";
			mnuInstallDictionary.Size = new System.Drawing.Size(297, 26);
			mnuInstallDictionary.Text = "Install Dictionary";
			mnuCheckNow.Name = "mnuCheckNow";
			mnuCheckNow.Size = new System.Drawing.Size(297, 26);
			mnuCheckNow.Text = "Check Now (F7)";
			mnuCheckNow.Visible = false;
			mnuClear.Name = "mnuClear";
			mnuClear.Size = new System.Drawing.Size(297, 26);
			mnuClear.Text = "Clear";
			mnuClear.Visible = false;
			mnuSpellingOn.Name = "mnuSpellingOn";
			mnuSpellingOn.Size = new System.Drawing.Size(297, 26);
			mnuSpellingOn.Text = "Spell check on display and save";
			mnuSpellingOn.Visible = false;
			ToolStripSeparator2.Name = "ToolStripSeparator2";
			ToolStripSeparator2.Size = new System.Drawing.Size(294, 6);
			OpenDictionaryFolderToolStripMenuItem.Name = "OpenDictionaryFolderToolStripMenuItem";
			OpenDictionaryFolderToolStripMenuItem.Size = new System.Drawing.Size(297, 26);
			OpenDictionaryFolderToolStripMenuItem.Text = "Open the dictionary folder";
			SettingsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[20]
			{
				mnuSettings,
				mnuSelectFont,
				ToolStripSeparator4,
				mnuMarkKnownChar,
				mnuMarkKnownLocations,
				mnuMarkKnownItems,
				ClickableHyperlinksToolStripMenuItem,
				ToolStripSeparator1,
				SetFontColourToolStripMenuItem,
				SetBackgroundColourToolStripMenuItem,
				CustomColoursToolStripMenuItem,
				ToolStripSeparator9,
				SetParagraphIndentToolStripMenuItem,
				AllowTABInEditorWindowToolStripMenuItem,
				UseRightctrlForDBCSEntryToolStripMenuItem,
				HideFontBarToolStripMenuItem1,
				ToolStripSeparator17,
				CapitaliseFirstLetterOfSentenceToolStripMenuItem,
				AlwaysCapitaliseIToolStripMenuItem,
				TypewriterSoundsToolStripMenuItem
			});
			SettingsToolStripMenuItem.Name = "SettingsToolStripMenuItem";
			SettingsToolStripMenuItem.Size = new System.Drawing.Size(78, 25);
			SettingsToolStripMenuItem.Text = "Settings";
			mnuSettings.Name = "mnuSettings";
			mnuSettings.Size = new System.Drawing.Size(301, 26);
			mnuSettings.Text = "Autobackups && Punctuation";
			mnuSelectFont.Name = "mnuSelectFont";
			mnuSelectFont.Size = new System.Drawing.Size(301, 26);
			mnuSelectFont.Text = "Choose default font";
			ToolStripSeparator4.Name = "ToolStripSeparator4";
			ToolStripSeparator4.Size = new System.Drawing.Size(298, 6);
			mnuMarkKnownChar.Name = "mnuMarkKnownChar";
			mnuMarkKnownChar.Size = new System.Drawing.Size(301, 26);
			mnuMarkKnownChar.Text = "Mark known characters";
			mnuMarkKnownLocations.Name = "mnuMarkKnownLocations";
			mnuMarkKnownLocations.Size = new System.Drawing.Size(301, 26);
			mnuMarkKnownLocations.Text = "Mark known locations";
			mnuMarkKnownItems.Name = "mnuMarkKnownItems";
			mnuMarkKnownItems.Size = new System.Drawing.Size(301, 26);
			mnuMarkKnownItems.Text = "Mark known items";
			ClickableHyperlinksToolStripMenuItem.Checked = true;
			ClickableHyperlinksToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
			ClickableHyperlinksToolStripMenuItem.Name = "ClickableHyperlinksToolStripMenuItem";
			ClickableHyperlinksToolStripMenuItem.Size = new System.Drawing.Size(301, 26);
			ClickableHyperlinksToolStripMenuItem.Text = "Clickable Hyperlinks";
			ToolStripSeparator1.Name = "ToolStripSeparator1";
			ToolStripSeparator1.Size = new System.Drawing.Size(298, 6);
			SetFontColourToolStripMenuItem.Name = "SetFontColourToolStripMenuItem";
			SetFontColourToolStripMenuItem.Size = new System.Drawing.Size(301, 26);
			SetFontColourToolStripMenuItem.Text = "Set font colour";
			SetBackgroundColourToolStripMenuItem.Name = "SetBackgroundColourToolStripMenuItem";
			SetBackgroundColourToolStripMenuItem.Size = new System.Drawing.Size(301, 26);
			SetBackgroundColourToolStripMenuItem.Text = "Set background colour";
			CustomColoursToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[9]
			{
				SetCharacterHighlightToolStripMenuItem,
				SetLocationsColourToolStripMenuItem,
				SetItemsColourToolStripMenuItem,
				DefaultsToolStripMenuItem,
				ToolStripSeparator15,
				SetSpellCheckColourToolStripMenuItem,
				tsmDefaultSpellColour,
				ToolStripSeparator16,
				SetHighlightColourToolStripMenuItem
			});
			CustomColoursToolStripMenuItem.Name = "CustomColoursToolStripMenuItem";
			CustomColoursToolStripMenuItem.Size = new System.Drawing.Size(301, 26);
			CustomColoursToolStripMenuItem.Text = "Custom Colours";
			SetCharacterHighlightToolStripMenuItem.Name = "SetCharacterHighlightToolStripMenuItem";
			SetCharacterHighlightToolStripMenuItem.Size = new System.Drawing.Size(276, 26);
			SetCharacterHighlightToolStripMenuItem.Text = "Set known characters colour";
			SetLocationsColourToolStripMenuItem.Name = "SetLocationsColourToolStripMenuItem";
			SetLocationsColourToolStripMenuItem.Size = new System.Drawing.Size(276, 26);
			SetLocationsColourToolStripMenuItem.Text = "Set locations colour";
			SetItemsColourToolStripMenuItem.Name = "SetItemsColourToolStripMenuItem";
			SetItemsColourToolStripMenuItem.Size = new System.Drawing.Size(276, 26);
			SetItemsColourToolStripMenuItem.Text = "Set items colour";
			DefaultsToolStripMenuItem.Name = "DefaultsToolStripMenuItem";
			DefaultsToolStripMenuItem.Size = new System.Drawing.Size(276, 26);
			DefaultsToolStripMenuItem.Text = "Defaults";
			ToolStripSeparator15.Name = "ToolStripSeparator15";
			ToolStripSeparator15.Size = new System.Drawing.Size(273, 6);
			SetSpellCheckColourToolStripMenuItem.Name = "SetSpellCheckColourToolStripMenuItem";
			SetSpellCheckColourToolStripMenuItem.Size = new System.Drawing.Size(276, 26);
			SetSpellCheckColourToolStripMenuItem.Text = "Set spell check colour";
			tsmDefaultSpellColour.Name = "tsmDefaultSpellColour";
			tsmDefaultSpellColour.Size = new System.Drawing.Size(276, 26);
			tsmDefaultSpellColour.Text = "Default";
			ToolStripSeparator16.Name = "ToolStripSeparator16";
			ToolStripSeparator16.Size = new System.Drawing.Size(273, 6);
			SetHighlightColourToolStripMenuItem.Name = "SetHighlightColourToolStripMenuItem";
			SetHighlightColourToolStripMenuItem.Size = new System.Drawing.Size(276, 26);
			SetHighlightColourToolStripMenuItem.Text = "Setup highlight colours";
			ToolStripSeparator9.Name = "ToolStripSeparator9";
			ToolStripSeparator9.Size = new System.Drawing.Size(298, 6);
			SetParagraphIndentToolStripMenuItem.Name = "SetParagraphIndentToolStripMenuItem";
			SetParagraphIndentToolStripMenuItem.Size = new System.Drawing.Size(301, 26);
			SetParagraphIndentToolStripMenuItem.Text = "Set Paragraph Indent";
			AllowTABInEditorWindowToolStripMenuItem.Name = "AllowTABInEditorWindowToolStripMenuItem";
			AllowTABInEditorWindowToolStripMenuItem.Size = new System.Drawing.Size(301, 26);
			AllowTABInEditorWindowToolStripMenuItem.Text = "Allow TAB in editor window";
			UseRightctrlForDBCSEntryToolStripMenuItem.Name = "UseRightctrlForDBCSEntryToolStripMenuItem";
			UseRightctrlForDBCSEntryToolStripMenuItem.Size = new System.Drawing.Size(301, 26);
			UseRightctrlForDBCSEntryToolStripMenuItem.Text = "Use right-ctrl for DBCS entry";
			HideFontBarToolStripMenuItem1.Name = "HideFontBarToolStripMenuItem1";
			HideFontBarToolStripMenuItem1.Size = new System.Drawing.Size(301, 26);
			HideFontBarToolStripMenuItem1.Text = "Hide font bar";
			ToolStripSeparator17.Name = "ToolStripSeparator17";
			ToolStripSeparator17.Size = new System.Drawing.Size(298, 6);
			CapitaliseFirstLetterOfSentenceToolStripMenuItem.Name = "CapitaliseFirstLetterOfSentenceToolStripMenuItem";
			CapitaliseFirstLetterOfSentenceToolStripMenuItem.Size = new System.Drawing.Size(301, 26);
			CapitaliseFirstLetterOfSentenceToolStripMenuItem.Text = "Capitalise first letter of sentence";
			AlwaysCapitaliseIToolStripMenuItem.Name = "AlwaysCapitaliseIToolStripMenuItem";
			AlwaysCapitaliseIToolStripMenuItem.Size = new System.Drawing.Size(301, 26);
			AlwaysCapitaliseIToolStripMenuItem.Text = "Always capitalise 'I'";
			TypewriterSoundsToolStripMenuItem.Name = "TypewriterSoundsToolStripMenuItem";
			TypewriterSoundsToolStripMenuItem.Size = new System.Drawing.Size(301, 26);
			TypewriterSoundsToolStripMenuItem.Text = "Typewriter sounds";
			mnuHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[5]
			{
				ManualToolStripMenuItem,
				mnuWritingTips,
				KeyboardShortcutsToolStripMenuItem,
				StatusRatingsToolStripMenuItem,
				SpecialCodesToolStripMenuItem
			});
			mnuHelp.Name = "mnuHelp";
			mnuHelp.Size = new System.Drawing.Size(54, 25);
			mnuHelp.Text = "Help";
			ManualToolStripMenuItem.Name = "ManualToolStripMenuItem";
			ManualToolStripMenuItem.Size = new System.Drawing.Size(216, 26);
			ManualToolStripMenuItem.Text = "Contents";
			mnuWritingTips.Name = "mnuWritingTips";
			mnuWritingTips.Size = new System.Drawing.Size(216, 26);
			mnuWritingTips.Text = "Writing Tips";
			KeyboardShortcutsToolStripMenuItem.Name = "KeyboardShortcutsToolStripMenuItem";
			KeyboardShortcutsToolStripMenuItem.Size = new System.Drawing.Size(216, 26);
			KeyboardShortcutsToolStripMenuItem.Text = "Keyboard Shortcuts";
			StatusRatingsToolStripMenuItem.Name = "StatusRatingsToolStripMenuItem";
			StatusRatingsToolStripMenuItem.Size = new System.Drawing.Size(216, 26);
			StatusRatingsToolStripMenuItem.Text = "Status, Ratings";
			SpecialCodesToolStripMenuItem.Name = "SpecialCodesToolStripMenuItem";
			SpecialCodesToolStripMenuItem.Size = new System.Drawing.Size(216, 26);
			SpecialCodesToolStripMenuItem.Text = "Special Codes";
			TimerWC.Interval = 2000;
			TimerBackup.Interval = 5000;
			ImageList1.ImageStream = (System.Windows.Forms.ImageListStreamer)resources.GetObject("ImageList1.ImageStream");
			ImageList1.TransparentColor = System.Drawing.Color.FromArgb(192, 192, 192);
			ImageList1.Images.SetKeyName(0, "yw_Note_16_ico.ico");
			ImageList1.Images.SetKeyName(1, "yw_Art_16.ico");
			ImageList1.Images.SetKeyName(2, "yw_Char_16.ico");
			ImageList1.Images.SetKeyName(3, "yw_Item.ico");
			ImageList1.Images.SetKeyName(4, "yw_Location.ico");
			ImageList1.Images.SetKeyName(5, "yw_Scene_16_ico.ico");
			ImageList1.Images.SetKeyName(6, "ywChapterOther_16.png");
			ImageList1.Images.SetKeyName(7, "Conflict");
			ImageList1.Images.SetKeyName(8, "Goal");
			ImageList1.Images.SetKeyName(9, "Outcome");
			TimerExit.Interval = 120;
			txtMain.AccessibleName = "Scene Content";
			txtMain.AutoWordSelection = true;
			txtMain.ContextMenuStrip = ctxRC;
			txtMain.Dock = System.Windows.Forms.DockStyle.Fill;
			txtMain.EnableAutoDragDrop = true;
			txtMain.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtMain.HideSelection = false;
			txtMain.Location = new System.Drawing.Point(3, 3);
			txtMain.Margin = new System.Windows.Forms.Padding(6, 3, 6, 3);
			txtMain.Name = "txtMain";
			txtMain.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
			txtMain.Size = new System.Drawing.Size(890, 418);
			txtMain.TabIndex = 0;
			txtMain.Text = "";
			ctxRC.Items.AddRange(new System.Windows.Forms.ToolStripItem[24]
			{
				ctxCut,
				ctxCopy,
				ctxPaste,
				ToolStripSeparator5,
				ctxCutAsTitle,
				ctxCutAsDesc,
				tsbSepDict,
				ctxAddToDict,
				ToolStripSeparator7,
				AddSelectionAsNewCharacterToolStripMenuItem,
				CreateLocationFromSelectionToolStripMenuItem,
				CreateItemFromSelectionToolStripMenuItem,
				ToolStripSeparator18,
				InsertLinkToolStripMenuItem,
				ReplaceWithToolStripMenuItem,
				ctxDictLookup,
				ctxThesLookup,
				ToolStripSeparator8,
				ctxFGColour,
				ctxBGColour,
				ToolStripSeparator6,
				FullScreenEditorToolStripMenu,
				FullScreenEditorWithMarginsToolStripMenuItem,
				TiledEditorWindowsToolStripMenuItem
			});
			ctxRC.Name = "ctxRC";
			ctxRC.Size = new System.Drawing.Size(320, 508);
			ctxCut.Name = "ctxCut";
			ctxCut.Size = new System.Drawing.Size(319, 26);
			ctxCut.Text = "Cut";
			ctxCopy.Name = "ctxCopy";
			ctxCopy.Size = new System.Drawing.Size(319, 26);
			ctxCopy.Text = "Copy";
			ctxPaste.Name = "ctxPaste";
			ctxPaste.Size = new System.Drawing.Size(319, 26);
			ctxPaste.Text = "Paste";
			ToolStripSeparator5.Name = "ToolStripSeparator5";
			ToolStripSeparator5.Size = new System.Drawing.Size(316, 6);
			ctxCutAsTitle.Name = "ctxCutAsTitle";
			ctxCutAsTitle.Size = new System.Drawing.Size(319, 26);
			ctxCutAsTitle.Text = "Cut selection as scene title";
			ctxCutAsDesc.Name = "ctxCutAsDesc";
			ctxCutAsDesc.Size = new System.Drawing.Size(319, 26);
			ctxCutAsDesc.Text = "Cut selection for scene description";
			tsbSepDict.Name = "tsbSepDict";
			tsbSepDict.Size = new System.Drawing.Size(316, 6);
			ctxAddToDict.Name = "ctxAddToDict";
			ctxAddToDict.Size = new System.Drawing.Size(319, 26);
			ctxAddToDict.Text = "Add selection to custom dictionary";
			ToolStripSeparator7.Name = "ToolStripSeparator7";
			ToolStripSeparator7.Size = new System.Drawing.Size(316, 6);
			AddSelectionAsNewCharacterToolStripMenuItem.Name = "AddSelectionAsNewCharacterToolStripMenuItem";
			AddSelectionAsNewCharacterToolStripMenuItem.Size = new System.Drawing.Size(319, 26);
			AddSelectionAsNewCharacterToolStripMenuItem.Text = "Create character from selection";
			CreateLocationFromSelectionToolStripMenuItem.Name = "CreateLocationFromSelectionToolStripMenuItem";
			CreateLocationFromSelectionToolStripMenuItem.Size = new System.Drawing.Size(319, 26);
			CreateLocationFromSelectionToolStripMenuItem.Text = "Create location from selection";
			CreateItemFromSelectionToolStripMenuItem.Name = "CreateItemFromSelectionToolStripMenuItem";
			CreateItemFromSelectionToolStripMenuItem.Size = new System.Drawing.Size(319, 26);
			CreateItemFromSelectionToolStripMenuItem.Text = "Create item from selection";
			ToolStripSeparator18.Name = "ToolStripSeparator18";
			ToolStripSeparator18.Size = new System.Drawing.Size(316, 6);
			InsertLinkToolStripMenuItem.Name = "InsertLinkToolStripMenuItem";
			InsertLinkToolStripMenuItem.Size = new System.Drawing.Size(319, 26);
			InsertLinkToolStripMenuItem.Text = "Insert link";
			ReplaceWithToolStripMenuItem.Name = "ReplaceWithToolStripMenuItem";
			ReplaceWithToolStripMenuItem.Size = new System.Drawing.Size(319, 26);
			ReplaceWithToolStripMenuItem.Text = "Replace With ...";
			ctxDictLookup.Name = "ctxDictLookup";
			ctxDictLookup.Size = new System.Drawing.Size(319, 26);
			ctxDictLookup.Text = "Dictionary Lookup";
			ctxThesLookup.Name = "ctxThesLookup";
			ctxThesLookup.Size = new System.Drawing.Size(319, 26);
			ctxThesLookup.Text = "Thesaurus Lookup";
			ToolStripSeparator8.Name = "ToolStripSeparator8";
			ToolStripSeparator8.Size = new System.Drawing.Size(316, 6);
			ctxFGColour.Name = "ctxFGColour";
			ctxFGColour.Size = new System.Drawing.Size(319, 26);
			ctxFGColour.Text = "Set editor font colour";
			ctxBGColour.Name = "ctxBGColour";
			ctxBGColour.Size = new System.Drawing.Size(319, 26);
			ctxBGColour.Text = "Set editor background colour";
			ToolStripSeparator6.Name = "ToolStripSeparator6";
			ToolStripSeparator6.Size = new System.Drawing.Size(316, 6);
			FullScreenEditorToolStripMenu.Name = "FullScreenEditorToolStripMenu";
			FullScreenEditorToolStripMenu.Size = new System.Drawing.Size(319, 26);
			FullScreenEditorToolStripMenu.Text = "Full screen text editor";
			FullScreenEditorWithMarginsToolStripMenuItem.Name = "FullScreenEditorWithMarginsToolStripMenuItem";
			FullScreenEditorWithMarginsToolStripMenuItem.Size = new System.Drawing.Size(319, 26);
			FullScreenEditorWithMarginsToolStripMenuItem.Text = "Full screen editor with margins";
			TiledEditorWindowsToolStripMenuItem.Name = "TiledEditorWindowsToolStripMenuItem";
			TiledEditorWindowsToolStripMenuItem.Size = new System.Drawing.Size(319, 26);
			TiledEditorWindowsToolStripMenuItem.Text = "Tiled editor windows";
			TiledEditorWindowsToolStripMenuItem.Visible = false;
			ToolStripFontbar.Font = new System.Drawing.Font("Segoe UI", 10f);
			ToolStripFontbar.Items.AddRange(new System.Windows.Forms.ToolStripItem[24]
			{
				tsbCopy,
				tsbCut,
				tsbPaste,
				ToolStripSeparator20,
				tsbBold,
				tsbItalic,
				tsbUnderline,
				cmbFontSize,
				ToolStripSeparator3,
				cmbFont,
				tssStrikeThru,
				tssClearSelectedFormatting,
				cmdComment,
				ToolStripSeparator10,
				tsbReadAloud,
				tsbStopReading,
				tsbSetupSpeech,
				ToolStripSeparator12,
				tsmHighlight,
				ToolStripSeparator19,
				tsbLeftAlign,
				tsbAlignCentre,
				tsbAlignRight,
				ToolStripSeparator21
			});
			ToolStripFontbar.Location = new System.Drawing.Point(3, 3);
			ToolStripFontbar.Name = "ToolStripFontbar";
			ToolStripFontbar.Size = new System.Drawing.Size(896, 26);
			ToolStripFontbar.TabIndex = 74;
			ToolStripFontbar.Text = "ToolStrip1";
			tsbCopy.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
			tsbCopy.Image = (System.Drawing.Image)resources.GetObject("tsbCopy.Image");
			tsbCopy.ImageTransparentColor = System.Drawing.Color.Magenta;
			tsbCopy.Name = "tsbCopy";
			tsbCopy.Size = new System.Drawing.Size(45, 23);
			tsbCopy.Text = "Copy";
			tsbCopy.ToolTipText = "(Ctrl+C) Copy";
			tsbCut.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
			tsbCut.Image = (System.Drawing.Image)resources.GetObject("tsbCut.Image");
			tsbCut.ImageTransparentColor = System.Drawing.Color.Magenta;
			tsbCut.Name = "tsbCut";
			tsbCut.Size = new System.Drawing.Size(35, 23);
			tsbCut.Text = "Cut";
			tsbCut.ToolTipText = "(Ctrl+X) Cut";
			tsbPaste.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
			tsbPaste.Image = (System.Drawing.Image)resources.GetObject("tsbPaste.Image");
			tsbPaste.ImageTransparentColor = System.Drawing.Color.Magenta;
			tsbPaste.Name = "tsbPaste";
			tsbPaste.Size = new System.Drawing.Size(46, 23);
			tsbPaste.Text = "Paste";
			tsbPaste.ToolTipText = "(Ctrl+V) Paste";
			ToolStripSeparator20.Name = "ToolStripSeparator20";
			ToolStripSeparator20.Size = new System.Drawing.Size(6, 26);
			tsbBold.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
			tsbBold.Font = new System.Drawing.Font("Tahoma", 7.8f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			tsbBold.Image = (System.Drawing.Image)resources.GetObject("tsbBold.Image");
			tsbBold.ImageTransparentColor = System.Drawing.Color.Magenta;
			tsbBold.Name = "tsbBold";
			tsbBold.Size = new System.Drawing.Size(23, 23);
			tsbBold.Text = "B";
			tsbBold.ToolTipText = "(Ctrl+B) Bold";
			tsbItalic.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
			tsbItalic.Font = new System.Drawing.Font("Tahoma", 7.8f, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, 0);
			tsbItalic.Image = (System.Drawing.Image)resources.GetObject("tsbItalic.Image");
			tsbItalic.ImageTransparentColor = System.Drawing.Color.Magenta;
			tsbItalic.Name = "tsbItalic";
			tsbItalic.Size = new System.Drawing.Size(23, 23);
			tsbItalic.Text = "I";
			tsbItalic.ToolTipText = "(Ctrl+I) Italics";
			tsbUnderline.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
			tsbUnderline.Font = new System.Drawing.Font("Tahoma", 7.8f, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, 0);
			tsbUnderline.Image = (System.Drawing.Image)resources.GetObject("tsbUnderline.Image");
			tsbUnderline.ImageTransparentColor = System.Drawing.Color.Magenta;
			tsbUnderline.Name = "tsbUnderline";
			tsbUnderline.Size = new System.Drawing.Size(23, 23);
			tsbUnderline.Text = "U";
			tsbUnderline.ToolTipText = "(Ctrl+U) Underline";
			cmbFontSize.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
			cmbFontSize.Font = new System.Drawing.Font("Tahoma", 8f);
			cmbFontSize.Name = "cmbFontSize";
			cmbFontSize.Size = new System.Drawing.Size(75, 26);
			ToolStripSeparator3.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
			ToolStripSeparator3.AutoSize = false;
			ToolStripSeparator3.Name = "ToolStripSeparator3";
			ToolStripSeparator3.Size = new System.Drawing.Size(16, 25);
			cmbFont.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
			cmbFont.Font = new System.Drawing.Font("Tahoma", 8f);
			cmbFont.Name = "cmbFont";
			cmbFont.Size = new System.Drawing.Size(151, 26);
			tssStrikeThru.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
			tssStrikeThru.Font = new System.Drawing.Font("Tahoma", 7.8f, System.Drawing.FontStyle.Strikeout, System.Drawing.GraphicsUnit.Point, 0);
			tssStrikeThru.Image = (System.Drawing.Image)resources.GetObject("tssStrikeThru.Image");
			tssStrikeThru.ImageTransparentColor = System.Drawing.Color.Magenta;
			tssStrikeThru.Name = "tssStrikeThru";
			tssStrikeThru.Size = new System.Drawing.Size(23, 23);
			tssStrikeThru.Text = "S";
			tssStrikeThru.ToolTipText = "Strikethrough";
			tssClearSelectedFormatting.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
			tssClearSelectedFormatting.ForeColor = System.Drawing.Color.DarkRed;
			tssClearSelectedFormatting.Image = (System.Drawing.Image)resources.GetObject("tssClearSelectedFormatting.Image");
			tssClearSelectedFormatting.ImageTransparentColor = System.Drawing.Color.Magenta;
			tssClearSelectedFormatting.Name = "tssClearSelectedFormatting";
			tssClearSelectedFormatting.Size = new System.Drawing.Size(23, 23);
			tssClearSelectedFormatting.Text = "P";
			tssClearSelectedFormatting.TextImageRelation = System.Windows.Forms.TextImageRelation.TextAboveImage;
			tssClearSelectedFormatting.ToolTipText = "(Ctrl+P) Convert selection to plain text";
			cmdComment.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
			cmdComment.Image = (System.Drawing.Image)resources.GetObject("cmdComment.Image");
			cmdComment.ImageTransparentColor = System.Drawing.Color.Magenta;
			cmdComment.Name = "cmdComment";
			cmdComment.Size = new System.Drawing.Size(24, 23);
			cmdComment.Text = "/*";
			cmdComment.ToolTipText = "Convert selection to a comment. Comments are not included in your wordcount.";
			ToolStripSeparator10.Name = "ToolStripSeparator10";
			ToolStripSeparator10.Size = new System.Drawing.Size(6, 26);
			tsbReadAloud.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
			tsbReadAloud.Image = yWriter6.My.Resources.Resources.yR_Play;
			tsbReadAloud.ImageTransparentColor = System.Drawing.Color.Magenta;
			tsbReadAloud.Name = "tsbReadAloud";
			tsbReadAloud.Size = new System.Drawing.Size(23, 23);
			tsbReadAloud.Text = "S";
			tsbReadAloud.ToolTipText = "Read scene aloud, either selection or from cursor onwards";
			tsbStopReading.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
			tsbStopReading.Image = (System.Drawing.Image)resources.GetObject("tsbStopReading.Image");
			tsbStopReading.ImageTransparentColor = System.Drawing.Color.Magenta;
			tsbStopReading.Name = "tsbStopReading";
			tsbStopReading.Size = new System.Drawing.Size(23, 23);
			tsbStopReading.Text = "S";
			tsbStopReading.ToolTipText = "Stop reading";
			tsbStopReading.Visible = false;
			tsbSetupSpeech.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
			tsbSetupSpeech.Image = (System.Drawing.Image)resources.GetObject("tsbSetupSpeech.Image");
			tsbSetupSpeech.ImageTransparentColor = System.Drawing.Color.Magenta;
			tsbSetupSpeech.Name = "tsbSetupSpeech";
			tsbSetupSpeech.Size = new System.Drawing.Size(23, 23);
			tsbSetupSpeech.Text = "S";
			tsbSetupSpeech.ToolTipText = "Speech engine settings";
			ToolStripSeparator12.Name = "ToolStripSeparator12";
			ToolStripSeparator12.Size = new System.Drawing.Size(6, 26);
			tsmHighlight.BackColor = System.Drawing.Color.Transparent;
			tsmHighlight.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
			tsmHighlight.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[2]
			{
				ToolStripSeparator13,
				ClearSelectedHighlightToolStripMenuItem1
			});
			tsmHighlight.Image = (System.Drawing.Image)resources.GetObject("tsmHighlight.Image");
			tsmHighlight.ImageTransparentColor = System.Drawing.Color.Magenta;
			tsmHighlight.Name = "tsmHighlight";
			tsmHighlight.Size = new System.Drawing.Size(29, 23);
			tsmHighlight.Text = "ToolStripDropDownButton1";
			tsmHighlight.ToolTipText = "Highlight Text";
			ToolStripSeparator13.Name = "ToolStripSeparator13";
			ToolStripSeparator13.Size = new System.Drawing.Size(217, 6);
			ClearSelectedHighlightToolStripMenuItem1.Name = "ClearSelectedHighlightToolStripMenuItem1";
			ClearSelectedHighlightToolStripMenuItem1.Size = new System.Drawing.Size(220, 24);
			ClearSelectedHighlightToolStripMenuItem1.Text = "Clear selected highlight";
			ToolStripSeparator19.Name = "ToolStripSeparator19";
			ToolStripSeparator19.Size = new System.Drawing.Size(6, 26);
			tsbLeftAlign.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
			tsbLeftAlign.Image = (System.Drawing.Image)resources.GetObject("tsbLeftAlign.Image");
			tsbLeftAlign.ImageTransparentColor = System.Drawing.Color.Magenta;
			tsbLeftAlign.Name = "tsbLeftAlign";
			tsbLeftAlign.Size = new System.Drawing.Size(23, 23);
			tsbLeftAlign.Text = "L";
			tsbLeftAlign.ToolTipText = "Align Left";
			tsbAlignCentre.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
			tsbAlignCentre.Image = (System.Drawing.Image)resources.GetObject("tsbAlignCentre.Image");
			tsbAlignCentre.ImageTransparentColor = System.Drawing.Color.Magenta;
			tsbAlignCentre.Name = "tsbAlignCentre";
			tsbAlignCentre.Size = new System.Drawing.Size(23, 23);
			tsbAlignCentre.Text = "C";
			tsbAlignCentre.ToolTipText = "Align Centre";
			tsbAlignRight.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
			tsbAlignRight.Image = (System.Drawing.Image)resources.GetObject("tsbAlignRight.Image");
			tsbAlignRight.ImageTransparentColor = System.Drawing.Color.Magenta;
			tsbAlignRight.Name = "tsbAlignRight";
			tsbAlignRight.Size = new System.Drawing.Size(23, 23);
			tsbAlignRight.Text = "R";
			tsbAlignRight.ToolTipText = "Align Right";
			ToolStripSeparator21.Name = "ToolStripSeparator21";
			ToolStripSeparator21.Size = new System.Drawing.Size(6, 26);
			StatusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[7]
			{
				tssStatus,
				tssChaptername,
				tssSceneWordCount,
				tssToday,
				tssPrintStatus,
				tssSpeed,
				tssFilename
			});
            StatusStrip1.ShowItemToolTips = true;
			StatusStrip1.Location = new System.Drawing.Point(0, 601);
			StatusStrip1.Name = "StatusStrip1";
			StatusStrip1.Size = new System.Drawing.Size(916, 28);
			StatusStrip1.TabIndex = 0;
			tssStatus.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right;
			tssStatus.Font = new System.Drawing.Font("Segoe UI", 10f);
			tssStatus.Name = "tssStatus";
			tssStatus.Size = new System.Drawing.Size(21, 23);
			tssStatus.Text = "  ";
			tssChaptername.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right;
			tssChaptername.Font = new System.Drawing.Font("Segoe UI", 10f);
			tssChaptername.Name = "tssChaptername";
			tssChaptername.Size = new System.Drawing.Size(21, 23);
			tssChaptername.Text = "  ";
			tssSceneWordCount.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right;
			tssSceneWordCount.Font = new System.Drawing.Font("Segoe UI", 10f);
			tssSceneWordCount.Name = "tssSceneWordCount";
			tssSceneWordCount.Size = new System.Drawing.Size(21, 23);
			tssSceneWordCount.Text = "  ";
			tssToday.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right;
			tssToday.Font = new System.Drawing.Font("Segoe UI", 10f);
			tssToday.Name = "tssToday";
			tssToday.Size = new System.Drawing.Size(25, 23);
			tssToday.Text = "   ";
			tssPrintStatus.Font = new System.Drawing.Font("Segoe UI", 10f);
			tssPrintStatus.Name = "tssPrintStatus";
			tssPrintStatus.Size = new System.Drawing.Size(21, 23);
			tssPrintStatus.Text = "   ";
			tssSpeed.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Left;
			tssSpeed.Font = new System.Drawing.Font("Segoe UI", 10f);
			tssSpeed.Name = "tssSpeed";
			tssSpeed.Size = new System.Drawing.Size(25, 23);
			tssSpeed.Text = "   ";
			tssFilename.Font = new System.Drawing.Font("Segoe UI", 10f);
			tssFilename.Name = "tssFilename";
			tssFilename.Size = new System.Drawing.Size(767, 23);
			tssFilename.Spring = true;
			tssFilename.Text = " ";
			tssFilename.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			TableChapterSceneSelect.AutoSize = true;
			TableChapterSceneSelect.ColumnCount = 5;
			TableChapterSceneSelect.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 58.82353f));
			TableChapterSceneSelect.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 46f));
			TableChapterSceneSelect.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.76471f));
			TableChapterSceneSelect.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 46f));
			TableChapterSceneSelect.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 29.41176f));
			TableChapterSceneSelect.Controls.Add(txtTitle, 0, 0);
			TableChapterSceneSelect.Controls.Add(Label1, 1, 0);
			TableChapterSceneSelect.Controls.Add(Label4, 3, 0);
			TableChapterSceneSelect.Controls.Add(cmbChapter, 2, 0);
			TableChapterSceneSelect.Controls.Add(cmbScene, 4, 0);
			TableChapterSceneSelect.Dock = System.Windows.Forms.DockStyle.Bottom;
			TableChapterSceneSelect.Location = new System.Drawing.Point(0, 528);
			TableChapterSceneSelect.Margin = new System.Windows.Forms.Padding(0);
			TableChapterSceneSelect.Name = "TableChapterSceneSelect";
			TableChapterSceneSelect.RowCount = 1;
			TableChapterSceneSelect.RowStyles.Add(new System.Windows.Forms.RowStyle());
			TableChapterSceneSelect.Size = new System.Drawing.Size(916, 31);
			TableChapterSceneSelect.TabIndex = 100;
			Label1.AutoSize = true;
			Label1.Dock = System.Windows.Forms.DockStyle.Fill;
			Label1.Font = new System.Drawing.Font("Segoe UI", 10f);
			Label1.Location = new System.Drawing.Point(487, 0);
			Label1.Name = "Label1";
			Label1.Padding = new System.Windows.Forms.Padding(3);
			Label1.Size = new System.Drawing.Size(40, 31);
			Label1.TabIndex = 1;
			Label1.Text = "Ch:";
			Label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			Label4.AutoSize = true;
			Label4.Dock = System.Windows.Forms.DockStyle.Fill;
			Label4.Font = new System.Drawing.Font("Segoe UI", 10f);
			Label4.Location = new System.Drawing.Point(629, 0);
			Label4.Name = "Label4";
			Label4.Padding = new System.Windows.Forms.Padding(3);
			Label4.Size = new System.Drawing.Size(40, 31);
			Label4.TabIndex = 2;
			Label4.Text = "Sc:";
			Label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			cmbChapter.AccessibleName = "Select Chapter";
			cmbChapter.Dock = System.Windows.Forms.DockStyle.Fill;
			cmbChapter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			cmbChapter.Font = new System.Drawing.Font("Segoe UI", 10f);
			cmbChapter.FormattingEnabled = true;
			cmbChapter.Location = new System.Drawing.Point(533, 3);
			cmbChapter.Name = "cmbChapter";
			cmbChapter.Size = new System.Drawing.Size(90, 25);
			cmbChapter.TabIndex = 3;
			cmbChapter.TabStop = false;
			cmbScene.AccessibleName = "Select Scene";
			cmbScene.Dock = System.Windows.Forms.DockStyle.Fill;
			cmbScene.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			cmbScene.Font = new System.Drawing.Font("Segoe UI", 10f);
			cmbScene.FormattingEnabled = true;
			cmbScene.Location = new System.Drawing.Point(675, 3);
			cmbScene.Name = "cmbScene";
			cmbScene.Size = new System.Drawing.Size(238, 25);
			cmbScene.TabIndex = 4;
			cmbScene.TabStop = false;
			cmbField0.BackColor = System.Drawing.SystemColors.Window;
			cmbField0.Cursor = System.Windows.Forms.Cursors.Default;
			cmbField0.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			cmbField0.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			cmbField0.ForeColor = System.Drawing.SystemColors.WindowText;
			cmbField0.Location = new System.Drawing.Point(151, 34);
			cmbField0.Name = "cmbField0";
			cmbField0.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmbField0.Size = new System.Drawing.Size(79, 23);
			cmbField0.TabIndex = 8;
			cmbField0.Tag = "1";
			lblField2.BackColor = System.Drawing.Color.Transparent;
			lblField2.Cursor = System.Windows.Forms.Cursors.Default;
			lblField2.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			lblField2.ForeColor = System.Drawing.SystemColors.ControlText;
			lblField2.Location = new System.Drawing.Point(24, 105);
			lblField2.Name = "lblField2";
			lblField2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			lblField2.Size = new System.Drawing.Size(115, 23);
			lblField2.TabIndex = 11;
			lblField2.Text = "Field";
			lblField2.TextAlign = System.Drawing.ContentAlignment.TopRight;
			lblField3.BackColor = System.Drawing.Color.Transparent;
			lblField3.Cursor = System.Windows.Forms.Cursors.Default;
			lblField3.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			lblField3.ForeColor = System.Drawing.SystemColors.ControlText;
			lblField3.Location = new System.Drawing.Point(24, 139);
			lblField3.Name = "lblField3";
			lblField3.RightToLeft = System.Windows.Forms.RightToLeft.No;
			lblField3.Size = new System.Drawing.Size(115, 23);
			lblField3.TabIndex = 13;
			lblField3.Text = "Field";
			lblField3.TextAlign = System.Drawing.ContentAlignment.TopRight;
			cmbStatus.BackColor = System.Drawing.SystemColors.Window;
			cmbStatus.Cursor = System.Windows.Forms.Cursors.Default;
			cmbStatus.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			cmbStatus.Font = new System.Drawing.Font("Segoe UI", 10f);
			cmbStatus.ForeColor = System.Drawing.SystemColors.WindowText;
			cmbStatus.Location = new System.Drawing.Point(119, 62);
			cmbStatus.Name = "cmbStatus";
			cmbStatus.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmbStatus.Size = new System.Drawing.Size(115, 25);
			cmbStatus.TabIndex = 18;
			cmbField1.BackColor = System.Drawing.SystemColors.Window;
			cmbField1.Cursor = System.Windows.Forms.Cursors.Default;
			cmbField1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			cmbField1.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			cmbField1.ForeColor = System.Drawing.SystemColors.WindowText;
			cmbField1.Location = new System.Drawing.Point(151, 68);
			cmbField1.Name = "cmbField1";
			cmbField1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmbField1.Size = new System.Drawing.Size(79, 23);
			cmbField1.TabIndex = 10;
			cmbField1.Tag = "3";
			lblField0.BackColor = System.Drawing.Color.Transparent;
			lblField0.Cursor = System.Windows.Forms.Cursors.Default;
			lblField0.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			lblField0.ForeColor = System.Drawing.SystemColors.ControlText;
			lblField0.Location = new System.Drawing.Point(24, 37);
			lblField0.Name = "lblField0";
			lblField0.RightToLeft = System.Windows.Forms.RightToLeft.No;
			lblField0.Size = new System.Drawing.Size(115, 23);
			lblField0.TabIndex = 7;
			lblField0.Text = "Field";
			lblField0.TextAlign = System.Drawing.ContentAlignment.TopRight;
			cmbField3.BackColor = System.Drawing.SystemColors.Window;
			cmbField3.Cursor = System.Windows.Forms.Cursors.Default;
			cmbField3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			cmbField3.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			cmbField3.ForeColor = System.Drawing.SystemColors.WindowText;
			cmbField3.Location = new System.Drawing.Point(151, 136);
			cmbField3.Name = "cmbField3";
			cmbField3.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmbField3.Size = new System.Drawing.Size(79, 23);
			cmbField3.TabIndex = 14;
			cmbField3.Tag = "4";
			lblField1.BackColor = System.Drawing.Color.Transparent;
			lblField1.Cursor = System.Windows.Forms.Cursors.Default;
			lblField1.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			lblField1.ForeColor = System.Drawing.SystemColors.ControlText;
			lblField1.Location = new System.Drawing.Point(24, 71);
			lblField1.Name = "lblField1";
			lblField1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			lblField1.Size = new System.Drawing.Size(115, 23);
			lblField1.TabIndex = 9;
			lblField1.Text = "Field";
			lblField1.TextAlign = System.Drawing.ContentAlignment.TopRight;
			cmbField2.BackColor = System.Drawing.SystemColors.Window;
			cmbField2.Cursor = System.Windows.Forms.Cursors.Default;
			cmbField2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			cmbField2.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			cmbField2.ForeColor = System.Drawing.SystemColors.WindowText;
			cmbField2.Location = new System.Drawing.Point(151, 102);
			cmbField2.Name = "cmbField2";
			cmbField2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmbField2.Size = new System.Drawing.Size(79, 23);
			cmbField2.TabIndex = 12;
			cmbField2.Tag = "2";
			TableLayoutPanel3.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right);
			TableLayoutPanel3.ColumnCount = 2;
			TableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
			TableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100f));
			TableLayoutPanel3.Controls.Add(lblGoal, 0, 0);
			TableLayoutPanel3.Controls.Add(txtOutcome, 1, 2);
			TableLayoutPanel3.Controls.Add(txtConflict, 1, 1);
			TableLayoutPanel3.Controls.Add(txtGoal, 1, 0);
			TableLayoutPanel3.Controls.Add(lblConflict, 0, 1);
			TableLayoutPanel3.Controls.Add(lblOutcome, 0, 2);
			TableLayoutPanel3.Location = new System.Drawing.Point(6, 108);
			TableLayoutPanel3.Name = "TableLayoutPanel3";
			TableLayoutPanel3.RowCount = 3;
			TableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33f));
			TableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33f));
			TableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.34f));
			TableLayoutPanel3.Size = new System.Drawing.Size(890, 97);
			TableLayoutPanel3.TabIndex = 85;
			txtOutcome.AcceptsReturn = true;
			txtOutcome.BackColor = System.Drawing.SystemColors.Window;
			txtOutcome.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtOutcome.Dock = System.Windows.Forms.DockStyle.Fill;
			txtOutcome.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtOutcome.ForeColor = System.Drawing.SystemColors.WindowText;
			txtOutcome.Location = new System.Drawing.Point(120, 67);
			txtOutcome.MaxLength = 0;
			txtOutcome.Name = "txtOutcome";
			txtOutcome.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtOutcome.Size = new System.Drawing.Size(767, 23);
			txtOutcome.TabIndex = 21;
			txtOutcome.Text = "This is a test";
			txtConflict.AcceptsReturn = true;
			txtConflict.BackColor = System.Drawing.SystemColors.Window;
			txtConflict.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtConflict.Dock = System.Windows.Forms.DockStyle.Fill;
			txtConflict.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtConflict.ForeColor = System.Drawing.SystemColors.WindowText;
			txtConflict.Location = new System.Drawing.Point(120, 34);
			txtConflict.Margin = new System.Windows.Forms.Padding(3, 2, 3, 3);
			txtConflict.MaxLength = 0;
			txtConflict.Name = "txtConflict";
			txtConflict.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtConflict.Size = new System.Drawing.Size(767, 23);
			txtConflict.TabIndex = 20;
			txtConflict.Text = "This is a test";
			txtGoal.AcceptsReturn = true;
			txtGoal.BackColor = System.Drawing.SystemColors.Window;
			txtGoal.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtGoal.Dock = System.Windows.Forms.DockStyle.Fill;
			txtGoal.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtGoal.ForeColor = System.Drawing.SystemColors.WindowText;
			txtGoal.Location = new System.Drawing.Point(120, 2);
			txtGoal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 3);
			txtGoal.MaxLength = 0;
			txtGoal.Name = "txtGoal";
			txtGoal.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtGoal.Size = new System.Drawing.Size(767, 23);
			txtGoal.TabIndex = 19;
			txtGoal.Text = "This is a test";
			fraDHM.BackColor = System.Drawing.Color.Transparent;
			fraDHM.Controls.Add(cmdSwitchDateMode1);
			fraDHM.Controls.Add(cmbHour);
			fraDHM.Controls.Add(txtDay);
			fraDHM.Controls.Add(cmbMinute);
			fraDHM.Controls.Add(_Label7_0);
			fraDHM.Controls.Add(_Label7_1);
			fraDHM.Controls.Add(_Label7_2);
			fraDHM.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			fraDHM.ForeColor = System.Drawing.SystemColors.ControlText;
			fraDHM.Location = new System.Drawing.Point(12, 35);
			fraDHM.Name = "fraDHM";
			fraDHM.Padding = new System.Windows.Forms.Padding(0);
			fraDHM.RightToLeft = System.Windows.Forms.RightToLeft.No;
			fraDHM.Size = new System.Drawing.Size(335, 65);
			fraDHM.TabIndex = 20;
			fraDHM.TabStop = false;
			fraDHM.Text = "Day/Hour/Minute scene begins";
			cmbHour.AccessibleName = "Hour scene begins";
			cmbHour.BackColor = System.Drawing.SystemColors.Window;
			cmbHour.Cursor = System.Windows.Forms.Cursors.Default;
			cmbHour.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			cmbHour.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			cmbHour.ForeColor = System.Drawing.SystemColors.WindowText;
			cmbHour.Location = new System.Drawing.Point(109, 26);
			cmbHour.Name = "cmbHour";
			cmbHour.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmbHour.Size = new System.Drawing.Size(59, 23);
			cmbHour.TabIndex = 10;
			txtDay.AcceptsReturn = true;
			txtDay.AccessibleName = "Day scene begins";
			txtDay.BackColor = System.Drawing.SystemColors.Window;
			txtDay.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtDay.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtDay.ForeColor = System.Drawing.SystemColors.WindowText;
			txtDay.Location = new System.Drawing.Point(36, 27);
			txtDay.MaxLength = 0;
			txtDay.Name = "txtDay";
			txtDay.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtDay.Size = new System.Drawing.Size(32, 23);
			txtDay.TabIndex = 9;
			txtDay.Text = "0";
			txtDay.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			cmbMinute.AccessibleName = "Minute scene begins";
			cmbMinute.BackColor = System.Drawing.SystemColors.Window;
			cmbMinute.Cursor = System.Windows.Forms.Cursors.Default;
			cmbMinute.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			cmbMinute.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			cmbMinute.ForeColor = System.Drawing.SystemColors.WindowText;
			cmbMinute.Location = new System.Drawing.Point(206, 26);
			cmbMinute.Name = "cmbMinute";
			cmbMinute.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmbMinute.Size = new System.Drawing.Size(59, 23);
			cmbMinute.TabIndex = 11;
			_Label7_0.AutoSize = true;
			_Label7_0.BackColor = System.Drawing.Color.Transparent;
			_Label7_0.Cursor = System.Windows.Forms.Cursors.Default;
			_Label7_0.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			_Label7_0.ForeColor = System.Drawing.SystemColors.ControlText;
			_Label7_0.Location = new System.Drawing.Point(12, 31);
			_Label7_0.Name = "_Label7_0";
			_Label7_0.RightToLeft = System.Windows.Forms.RightToLeft.No;
			_Label7_0.Size = new System.Drawing.Size(15, 15);
			_Label7_0.TabIndex = 21;
			_Label7_0.Text = "D";
			_Label7_0.TextAlign = System.Drawing.ContentAlignment.TopRight;
			_Label7_1.AutoSize = true;
			_Label7_1.BackColor = System.Drawing.Color.Transparent;
			_Label7_1.Cursor = System.Windows.Forms.Cursors.Default;
			_Label7_1.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			_Label7_1.ForeColor = System.Drawing.SystemColors.ControlText;
			_Label7_1.Location = new System.Drawing.Point(84, 29);
			_Label7_1.Name = "_Label7_1";
			_Label7_1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			_Label7_1.Size = new System.Drawing.Size(16, 15);
			_Label7_1.TabIndex = 31;
			_Label7_1.Text = "H";
			_Label7_1.TextAlign = System.Drawing.ContentAlignment.TopRight;
			_Label7_2.AutoSize = true;
			_Label7_2.BackColor = System.Drawing.Color.Transparent;
			_Label7_2.Cursor = System.Windows.Forms.Cursors.Default;
			_Label7_2.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			_Label7_2.ForeColor = System.Drawing.SystemColors.ControlText;
			_Label7_2.Location = new System.Drawing.Point(181, 32);
			_Label7_2.Name = "_Label7_2";
			_Label7_2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			_Label7_2.Size = new System.Drawing.Size(18, 15);
			_Label7_2.TabIndex = 30;
			_Label7_2.Text = "M";
			_Label7_2.TextAlign = System.Drawing.ContentAlignment.TopRight;
			fraLasts.BackColor = System.Drawing.Color.Transparent;
			fraLasts.Controls.Add(cmbLastsHours);
			fraLasts.Controls.Add(txtLastsDays);
			fraLasts.Controls.Add(cmbLastsMinutes);
			fraLasts.Controls.Add(_Label7_5);
			fraLasts.Controls.Add(_Label7_4);
			fraLasts.Controls.Add(_Label7_3);
			fraLasts.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			fraLasts.ForeColor = System.Drawing.SystemColors.ControlText;
			fraLasts.Location = new System.Drawing.Point(12, 117);
			fraLasts.Name = "fraLasts";
			fraLasts.Padding = new System.Windows.Forms.Padding(0);
			fraLasts.RightToLeft = System.Windows.Forms.RightToLeft.No;
			fraLasts.Size = new System.Drawing.Size(275, 63);
			fraLasts.TabIndex = 19;
			fraLasts.TabStop = false;
			fraLasts.Text = "Amount of time scene lasts";
			cmbLastsHours.AccessibleName = "Hours scene lasts";
			cmbLastsHours.BackColor = System.Drawing.SystemColors.Window;
			cmbLastsHours.Cursor = System.Windows.Forms.Cursors.Default;
			cmbLastsHours.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			cmbLastsHours.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			cmbLastsHours.ForeColor = System.Drawing.SystemColors.WindowText;
			cmbLastsHours.Location = new System.Drawing.Point(112, 26);
			cmbLastsHours.Name = "cmbLastsHours";
			cmbLastsHours.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmbLastsHours.Size = new System.Drawing.Size(59, 23);
			cmbLastsHours.TabIndex = 17;
			txtLastsDays.AcceptsReturn = true;
			txtLastsDays.AccessibleName = "Days scene lasts";
			txtLastsDays.BackColor = System.Drawing.SystemColors.Window;
			txtLastsDays.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtLastsDays.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtLastsDays.ForeColor = System.Drawing.SystemColors.WindowText;
			txtLastsDays.Location = new System.Drawing.Point(39, 27);
			txtLastsDays.MaxLength = 0;
			txtLastsDays.Name = "txtLastsDays";
			txtLastsDays.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtLastsDays.Size = new System.Drawing.Size(32, 23);
			txtLastsDays.TabIndex = 16;
			txtLastsDays.Text = "0";
			txtLastsDays.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			cmbLastsMinutes.AccessibleName = "Minutes scene lasts";
			cmbLastsMinutes.BackColor = System.Drawing.SystemColors.Window;
			cmbLastsMinutes.Cursor = System.Windows.Forms.Cursors.Default;
			cmbLastsMinutes.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			cmbLastsMinutes.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			cmbLastsMinutes.ForeColor = System.Drawing.SystemColors.WindowText;
			cmbLastsMinutes.Location = new System.Drawing.Point(209, 26);
			cmbLastsMinutes.Name = "cmbLastsMinutes";
			cmbLastsMinutes.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmbLastsMinutes.Size = new System.Drawing.Size(59, 23);
			cmbLastsMinutes.TabIndex = 18;
			_Label7_5.BackColor = System.Drawing.Color.Transparent;
			_Label7_5.Cursor = System.Windows.Forms.Cursors.Default;
			_Label7_5.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			_Label7_5.ForeColor = System.Drawing.SystemColors.ControlText;
			_Label7_5.Location = new System.Drawing.Point(10, 31);
			_Label7_5.Name = "_Label7_5";
			_Label7_5.RightToLeft = System.Windows.Forms.RightToLeft.No;
			_Label7_5.Size = new System.Drawing.Size(23, 23);
			_Label7_5.TabIndex = 25;
			_Label7_5.Text = "D";
			_Label7_5.TextAlign = System.Drawing.ContentAlignment.TopRight;
			_Label7_4.BackColor = System.Drawing.Color.Transparent;
			_Label7_4.Cursor = System.Windows.Forms.Cursors.Default;
			_Label7_4.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			_Label7_4.ForeColor = System.Drawing.SystemColors.ControlText;
			_Label7_4.Location = new System.Drawing.Point(83, 29);
			_Label7_4.Name = "_Label7_4";
			_Label7_4.RightToLeft = System.Windows.Forms.RightToLeft.No;
			_Label7_4.Size = new System.Drawing.Size(23, 20);
			_Label7_4.TabIndex = 24;
			_Label7_4.Text = "H";
			_Label7_4.TextAlign = System.Drawing.ContentAlignment.TopRight;
			_Label7_3.BackColor = System.Drawing.Color.Transparent;
			_Label7_3.Cursor = System.Windows.Forms.Cursors.Default;
			_Label7_3.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			_Label7_3.ForeColor = System.Drawing.SystemColors.ControlText;
			_Label7_3.Location = new System.Drawing.Point(180, 29);
			_Label7_3.Name = "_Label7_3";
			_Label7_3.RightToLeft = System.Windows.Forms.RightToLeft.No;
			_Label7_3.Size = new System.Drawing.Size(23, 23);
			_Label7_3.TabIndex = 23;
			_Label7_3.Text = "M";
			_Label7_3.TextAlign = System.Drawing.ContentAlignment.TopRight;
			TableLayoutPanel4.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right);
			TableLayoutPanel4.ColumnCount = 2;
			TableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel4.Controls.Add(ListCharAll, 1, 0);
			TableLayoutPanel4.Controls.Add(ListCharUsed, 0, 0);
			TableLayoutPanel4.Location = new System.Drawing.Point(8, 8);
			TableLayoutPanel4.Name = "TableLayoutPanel4";
			TableLayoutPanel4.Padding = new System.Windows.Forms.Padding(3);
			TableLayoutPanel4.RowCount = 1;
			TableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100f));
			TableLayoutPanel4.Size = new System.Drawing.Size(878, 230);
			TableLayoutPanel4.TabIndex = 33;
			Label5.AutoSize = true;
			Label5.Dock = System.Windows.Forms.DockStyle.Fill;
			Label5.Font = new System.Drawing.Font("Segoe UI", 10f);
			Label5.Location = new System.Drawing.Point(3, 0);
			Label5.Name = "Label5";
			Label5.Size = new System.Drawing.Size(127, 40);
			Label5.TabIndex = 51;
			Label5.Text = "Viewpoint:";
			Label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			Panel2.AutoSize = true;
			Panel2.Controls.Add(TableLayoutPanel6);
			Panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
			Panel2.Location = new System.Drawing.Point(0, 559);
			Panel2.Name = "Panel2";
			Panel2.Padding = new System.Windows.Forms.Padding(3);
			Panel2.Size = new System.Drawing.Size(916, 42);
			Panel2.TabIndex = 75;
			TableLayoutPanel6.AutoSize = true;
			TableLayoutPanel6.ColumnCount = 5;
			TableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
			TableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
			TableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100f));
			TableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
			TableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
			TableLayoutPanel6.Controls.Add(cmdPrev, 0, 0);
			TableLayoutPanel6.Controls.Add(cmdSaveAndExit, 4, 0);
			TableLayoutPanel6.Controls.Add(cmdNext, 1, 0);
			TableLayoutPanel6.Controls.Add(cmdSave, 3, 0);
			TableLayoutPanel6.Controls.Add(lblUnusedIndicator, 2, 0);
			TableLayoutPanel6.Dock = System.Windows.Forms.DockStyle.Bottom;
			TableLayoutPanel6.Location = new System.Drawing.Point(3, 3);
			TableLayoutPanel6.MinimumSize = new System.Drawing.Size(0, 34);
			TableLayoutPanel6.Name = "TableLayoutPanel6";
			TableLayoutPanel6.RowCount = 1;
			TableLayoutPanel6.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100f));
			TableLayoutPanel6.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 36f));
			TableLayoutPanel6.Size = new System.Drawing.Size(910, 36);
			TableLayoutPanel6.TabIndex = 26;
			lblUnusedIndicator.AutoSize = true;
			lblUnusedIndicator.Dock = System.Windows.Forms.DockStyle.Fill;
			lblUnusedIndicator.Font = new System.Drawing.Font("Arial", 10.2f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			lblUnusedIndicator.Location = new System.Drawing.Point(167, 0);
			lblUnusedIndicator.Name = "lblUnusedIndicator";
			lblUnusedIndicator.Size = new System.Drawing.Size(536, 36);
			lblUnusedIndicator.TabIndex = 26;
			lblUnusedIndicator.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			TabControl2.Controls.Add(TabContent);
			TabControl2.Controls.Add(TabDetails);
			TabControl2.Controls.Add(TabCharacters);
			TabControl2.Controls.Add(TabPage1);
			TabControl2.Controls.Add(TabItems);
			TabControl2.Controls.Add(TabNotes);
			TabControl2.Controls.Add(tabImage);
			TabControl2.Controls.Add(tabGoals);
			TabControl2.Controls.Add(TabPage2);
			TabControl2.Controls.Add(tabTime);
			TabControl2.Controls.Add(tabRatings);
			TabControl2.Dock = System.Windows.Forms.DockStyle.Fill;
			TabControl2.Font = new System.Drawing.Font("Segoe UI", 10f);
			TabControl2.ImageList = ImageList1;
			TabControl2.Location = new System.Drawing.Point(3, 3);
			TabControl2.Name = "TabControl2";
			TabControl2.SelectedIndex = 0;
			TabControl2.Size = new System.Drawing.Size(910, 486);
			TabControl2.TabIndex = 34;
			TabControl2.TabStop = false;
			TabContent.Controls.Add(PanelMainTextPadding);
			TabContent.Controls.Add(ToolStripFontbar);
			TabContent.Location = new System.Drawing.Point(4, 26);
			TabContent.Name = "TabContent";
			TabContent.Padding = new System.Windows.Forms.Padding(3);
			TabContent.Size = new System.Drawing.Size(902, 456);
			TabContent.TabIndex = 0;
			TabContent.Text = "Content";
			TabContent.UseVisualStyleBackColor = true;
			PanelMainTextPadding.Controls.Add(txtMain);
			PanelMainTextPadding.Dock = System.Windows.Forms.DockStyle.Fill;
			PanelMainTextPadding.Location = new System.Drawing.Point(3, 29);
			PanelMainTextPadding.Name = "PanelMainTextPadding";
			PanelMainTextPadding.Padding = new System.Windows.Forms.Padding(3);
			PanelMainTextPadding.Size = new System.Drawing.Size(896, 424);
			PanelMainTextPadding.TabIndex = 75;
			TabDetails.Controls.Add(TableLayoutMainDetails);
			TabDetails.Controls.Add(GroupBox2);
			TabDetails.Location = new System.Drawing.Point(4, 26);
			TabDetails.Name = "TabDetails";
			TabDetails.Padding = new System.Windows.Forms.Padding(3);
			TabDetails.Size = new System.Drawing.Size(902, 456);
			TabDetails.TabIndex = 2;
			TabDetails.Text = "Details";
			TabDetails.UseVisualStyleBackColor = true;
			TableLayoutMainDetails.ColumnCount = 4;
			TableLayoutMainDetails.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 14.9373f));
			TableLayoutMainDetails.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 60.86382f));
			TableLayoutMainDetails.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.0261f));
			TableLayoutMainDetails.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.17277f));
			TableLayoutMainDetails.Controls.Add(txtDesc, 1, 2);
			TableLayoutMainDetails.Controls.Add(Label8, 0, 2);
			TableLayoutMainDetails.Controls.Add(cmdAddChar, 3, 0);
			TableLayoutMainDetails.Controls.Add(Label5, 0, 0);
			TableLayoutMainDetails.Controls.Add(cmdEditChar, 2, 0);
			TableLayoutMainDetails.Controls.Add(cmbViewpoint, 1, 0);
			TableLayoutMainDetails.Dock = System.Windows.Forms.DockStyle.Fill;
			TableLayoutMainDetails.Location = new System.Drawing.Point(3, 3);
			TableLayoutMainDetails.Name = "TableLayoutMainDetails";
			TableLayoutMainDetails.RowCount = 3;
			TableLayoutMainDetails.RowStyles.Add(new System.Windows.Forms.RowStyle());
			TableLayoutMainDetails.RowStyles.Add(new System.Windows.Forms.RowStyle());
			TableLayoutMainDetails.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 23f));
			TableLayoutMainDetails.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20f));
			TableLayoutMainDetails.Size = new System.Drawing.Size(896, 347);
			TableLayoutMainDetails.TabIndex = 52;
			Label8.AutoSize = true;
			Label8.Dock = System.Windows.Forms.DockStyle.Fill;
			Label8.Font = new System.Drawing.Font("Segoe UI", 10f);
			Label8.Location = new System.Drawing.Point(3, 40);
			Label8.Name = "Label8";
			Label8.Padding = new System.Windows.Forms.Padding(0, 5, 0, 0);
			Label8.Size = new System.Drawing.Size(127, 307);
			Label8.TabIndex = 55;
			Label8.Text = "Description:";
			Label8.TextAlign = System.Drawing.ContentAlignment.TopRight;
			GroupBox2.Controls.Add(lblStatus);
			GroupBox2.Controls.Add(Label12);
			GroupBox2.Controls.Add(cmbStatus);
			GroupBox2.Controls.Add(txtTags);
			GroupBox2.Dock = System.Windows.Forms.DockStyle.Bottom;
			GroupBox2.Location = new System.Drawing.Point(3, 350);
			GroupBox2.Name = "GroupBox2";
			GroupBox2.Size = new System.Drawing.Size(896, 103);
			GroupBox2.TabIndex = 26;
			GroupBox2.TabStop = false;
			lblStatus.BackColor = System.Drawing.Color.Transparent;
			lblStatus.Cursor = System.Windows.Forms.Cursors.Default;
			lblStatus.Font = new System.Drawing.Font("Segoe UI", 10f);
			lblStatus.ForeColor = System.Drawing.SystemColors.ControlText;
			lblStatus.Location = new System.Drawing.Point(45, 63);
			lblStatus.Name = "lblStatus";
			lblStatus.RightToLeft = System.Windows.Forms.RightToLeft.No;
			lblStatus.Size = new System.Drawing.Size(59, 23);
			lblStatus.TabIndex = 17;
			lblStatus.Text = "Status:";
			lblStatus.TextAlign = System.Drawing.ContentAlignment.TopRight;
			Label12.Location = new System.Drawing.Point(36, 24);
			Label12.Name = "Label12";
			Label12.Size = new System.Drawing.Size(68, 23);
			Label12.TabIndex = 15;
			Label12.Text = "Tags:";
			Label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			TabCharacters.Controls.Add(TableLayoutPanel5);
			TabCharacters.Controls.Add(Label7);
			TabCharacters.Controls.Add(Label6);
			TabCharacters.Controls.Add(lblViewpointChar);
			TabCharacters.Controls.Add(lblFullName);
			TabCharacters.Controls.Add(lblSelectedCharID);
			TabCharacters.Controls.Add(TableLayoutPanel4);
			TabCharacters.Location = new System.Drawing.Point(4, 26);
			TabCharacters.Name = "TabCharacters";
			TabCharacters.Padding = new System.Windows.Forms.Padding(3);
			TabCharacters.Size = new System.Drawing.Size(902, 456);
			TabCharacters.TabIndex = 1;
			TabCharacters.Text = "Characters";
			TabCharacters.UseVisualStyleBackColor = true;
			TableLayoutPanel5.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right);
			TableLayoutPanel5.ColumnCount = 2;
			TableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel5.Controls.Add(txtCharNotes, 0, 0);
			TableLayoutPanel5.Controls.Add(txtCharDesc, 0, 0);
			TableLayoutPanel5.Location = new System.Drawing.Point(8, 275);
			TableLayoutPanel5.Name = "TableLayoutPanel5";
			TableLayoutPanel5.RowCount = 1;
			TableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel5.Size = new System.Drawing.Size(878, 158);
			TableLayoutPanel5.TabIndex = 62;
			Label7.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left);
			Label7.Location = new System.Drawing.Point(405, 246);
			Label7.Name = "Label7";
			Label7.Size = new System.Drawing.Size(95, 28);
			Label7.TabIndex = 61;
			Label7.Text = "Full name:";
			Label7.TextAlign = System.Drawing.ContentAlignment.TopRight;
			Label6.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left);
			Label6.Location = new System.Drawing.Point(10, 246);
			Label6.Name = "Label6";
			Label6.Size = new System.Drawing.Size(116, 23);
			Label6.TabIndex = 61;
			Label6.Text = "Short name:";
			Label6.TextAlign = System.Drawing.ContentAlignment.TopRight;
			lblViewpointChar.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left);
			lblViewpointChar.Location = new System.Drawing.Point(130, 246);
			lblViewpointChar.Name = "lblViewpointChar";
			lblViewpointChar.Size = new System.Drawing.Size(164, 23);
			lblViewpointChar.TabIndex = 59;
			lblViewpointChar.Text = "-";
			lblFullName.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right);
			lblFullName.Location = new System.Drawing.Point(506, 246);
			lblFullName.Name = "lblFullName";
			lblFullName.Size = new System.Drawing.Size(303, 23);
			lblFullName.TabIndex = 58;
			lblFullName.Text = "-";
			lblSelectedCharID.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left);
			lblSelectedCharID.AutoSize = true;
			lblSelectedCharID.BackColor = System.Drawing.Color.White;
			lblSelectedCharID.Location = new System.Drawing.Point(321, 246);
			lblSelectedCharID.Name = "lblSelectedCharID";
			lblSelectedCharID.Size = new System.Drawing.Size(15, 19);
			lblSelectedCharID.TabIndex = 58;
			lblSelectedCharID.Text = "-";
			lblSelectedCharID.Visible = false;
			TabPage1.Controls.Add(TableLayoutPanel7);
			TabPage1.Location = new System.Drawing.Point(4, 26);
			TabPage1.Name = "TabPage1";
			TabPage1.Padding = new System.Windows.Forms.Padding(3);
			TabPage1.Size = new System.Drawing.Size(902, 456);
			TabPage1.TabIndex = 5;
			TabPage1.Text = "Locations";
			TabPage1.UseVisualStyleBackColor = true;
			TableLayoutPanel7.ColumnCount = 2;
			TableLayoutPanel7.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel7.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel7.Controls.Add(ListLocAll, 0, 0);
			TableLayoutPanel7.Controls.Add(ListLocUsed, 0, 0);
			TableLayoutPanel7.Dock = System.Windows.Forms.DockStyle.Fill;
			TableLayoutPanel7.Location = new System.Drawing.Point(3, 3);
			TableLayoutPanel7.Name = "TableLayoutPanel7";
			TableLayoutPanel7.RowCount = 1;
			TableLayoutPanel7.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel7.Size = new System.Drawing.Size(896, 450);
			TableLayoutPanel7.TabIndex = 0;
			TabItems.Controls.Add(TableLayoutPanel9);
			TabItems.Location = new System.Drawing.Point(4, 26);
			TabItems.Name = "TabItems";
			TabItems.Padding = new System.Windows.Forms.Padding(3);
			TabItems.Size = new System.Drawing.Size(902, 456);
			TabItems.TabIndex = 6;
			TabItems.Text = "Items";
			TabItems.UseVisualStyleBackColor = true;
			TableLayoutPanel9.ColumnCount = 2;
			TableLayoutPanel9.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel9.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel9.Controls.Add(ListItemsAll, 0, 0);
			TableLayoutPanel9.Controls.Add(listItemsUsed, 0, 0);
			TableLayoutPanel9.Dock = System.Windows.Forms.DockStyle.Fill;
			TableLayoutPanel9.Location = new System.Drawing.Point(3, 3);
			TableLayoutPanel9.Name = "TableLayoutPanel9";
			TableLayoutPanel9.RowCount = 1;
			TableLayoutPanel9.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel9.Size = new System.Drawing.Size(896, 450);
			TableLayoutPanel9.TabIndex = 1;
			TabNotes.Controls.Add(txtNotes);
			TabNotes.Location = new System.Drawing.Point(4, 26);
			TabNotes.Name = "TabNotes";
			TabNotes.Padding = new System.Windows.Forms.Padding(3);
			TabNotes.Size = new System.Drawing.Size(902, 456);
			TabNotes.TabIndex = 4;
			TabNotes.Text = "Notes";
			TabNotes.UseVisualStyleBackColor = true;
			tabImage.Controls.Add(Picture1);
			tabImage.Controls.Add(txtImageFile);
			tabImage.Controls.Add(cmdClear);
			tabImage.Controls.Add(cmdSelectImage);
			tabImage.Controls.Add(Image2);
			tabImage.Controls.Add(lblImageData);
			tabImage.Location = new System.Drawing.Point(4, 26);
			tabImage.Name = "tabImage";
			tabImage.Size = new System.Drawing.Size(902, 456);
			tabImage.TabIndex = 3;
			tabImage.Text = "Picture";
			tabImage.UseVisualStyleBackColor = true;
			Picture1.BackColor = System.Drawing.SystemColors.Control;
			Picture1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			Picture1.Cursor = System.Windows.Forms.Cursors.Default;
			Picture1.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			Picture1.ForeColor = System.Drawing.SystemColors.ControlText;
			Picture1.Location = new System.Drawing.Point(25, 71);
			Picture1.Name = "Picture1";
			Picture1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			Picture1.Size = new System.Drawing.Size(62, 49);
			Picture1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
			Picture1.TabIndex = 29;
			Picture1.TabStop = false;
			Picture1.Visible = false;
			txtImageFile.AcceptsReturn = true;
			txtImageFile.BackColor = System.Drawing.SystemColors.Window;
			txtImageFile.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtImageFile.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtImageFile.ForeColor = System.Drawing.SystemColors.WindowText;
			txtImageFile.Location = new System.Drawing.Point(14, 39);
			txtImageFile.MaxLength = 0;
			txtImageFile.Name = "txtImageFile";
			txtImageFile.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtImageFile.Size = new System.Drawing.Size(145, 23);
			txtImageFile.TabIndex = 28;
			txtImageFile.Visible = false;
			cmdClear.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
			cmdClear.BackColor = System.Drawing.SystemColors.Control;
			cmdClear.Cursor = System.Windows.Forms.Cursors.Default;
			cmdClear.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			cmdClear.ForeColor = System.Drawing.SystemColors.ControlText;
			cmdClear.Location = new System.Drawing.Point(822, 51);
			cmdClear.Name = "cmdClear";
			cmdClear.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmdClear.Size = new System.Drawing.Size(67, 39);
			cmdClear.TabIndex = 27;
			cmdClear.Text = "Clear";
			cmdClear.UseVisualStyleBackColor = true;
			Image2.Cursor = System.Windows.Forms.Cursors.Default;
			Image2.Location = new System.Drawing.Point(94, 71);
			Image2.Name = "Image2";
			Image2.Size = new System.Drawing.Size(65, 56);
			Image2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
			Image2.TabIndex = 31;
			Image2.TabStop = false;
			lblImageData.BackColor = System.Drawing.SystemColors.Control;
			lblImageData.Cursor = System.Windows.Forms.Cursors.Default;
			lblImageData.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			lblImageData.ForeColor = System.Drawing.SystemColors.ControlText;
			lblImageData.Location = new System.Drawing.Point(22, 14);
			lblImageData.Name = "lblImageData";
			lblImageData.RightToLeft = System.Windows.Forms.RightToLeft.No;
			lblImageData.Size = new System.Drawing.Size(105, 22);
			lblImageData.TabIndex = 30;
			lblImageData.Visible = false;
			tabGoals.Controls.Add(TableLayoutPanel3);
			tabGoals.Controls.Add(GroupBox4);
			tabGoals.Controls.Add(GroupBox3);
			tabGoals.Location = new System.Drawing.Point(4, 26);
			tabGoals.Name = "tabGoals";
			tabGoals.Padding = new System.Windows.Forms.Padding(3);
			tabGoals.Size = new System.Drawing.Size(902, 456);
			tabGoals.TabIndex = 7;
			tabGoals.Text = "Goals";
			tabGoals.UseVisualStyleBackColor = true;
			GroupBox4.Controls.Add(optSubplot);
			GroupBox4.Controls.Add(optPlot);
			GroupBox4.Location = new System.Drawing.Point(12, 230);
			GroupBox4.Name = "GroupBox4";
			GroupBox4.Size = new System.Drawing.Size(248, 68);
			GroupBox4.TabIndex = 3;
			GroupBox4.TabStop = false;
			GroupBox4.Text = "Importance";
			optSubplot.AccessibleName = "Subplot";
			optSubplot.AutoSize = true;
			optSubplot.Location = new System.Drawing.Point(111, 29);
			optSubplot.Name = "optSubplot";
			optSubplot.Size = new System.Drawing.Size(74, 23);
			optSubplot.TabIndex = 5;
			optSubplot.Text = "Subplot";
			optSubplot.UseVisualStyleBackColor = true;
			optPlot.AccessibleName = "Plot";
			optPlot.AutoSize = true;
			optPlot.Checked = true;
			optPlot.Location = new System.Drawing.Point(15, 29);
			optPlot.Name = "optPlot";
			optPlot.Size = new System.Drawing.Size(51, 23);
			optPlot.TabIndex = 4;
			optPlot.TabStop = true;
			optPlot.Text = "Plot";
			optPlot.UseVisualStyleBackColor = true;
			GroupBox3.Controls.Add(optReaction);
			GroupBox3.Controls.Add(optAction);
			GroupBox3.Location = new System.Drawing.Point(12, 20);
			GroupBox3.Name = "GroupBox3";
			GroupBox3.Size = new System.Drawing.Size(248, 68);
			GroupBox3.TabIndex = 0;
			GroupBox3.TabStop = false;
			GroupBox3.Text = "Type of scene";
			TabPage2.Controls.Add(Panel3);
			TabPage2.Location = new System.Drawing.Point(4, 26);
			TabPage2.Name = "TabPage2";
			TabPage2.Padding = new System.Windows.Forms.Padding(3);
			TabPage2.Size = new System.Drawing.Size(902, 456);
			TabPage2.TabIndex = 8;
			TabPage2.Text = "Exporting";
			TabPage2.UseVisualStyleBackColor = true;
			Panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			Panel3.Controls.Add(chkAppendToPrev);
			Panel3.Controls.Add(PanelExportCondAll);
			Panel3.Controls.Add(PanelSpecificExportOpts);
			Panel3.Controls.Add(Label2);
			Panel3.Controls.Add(optConditions);
			Panel3.Controls.Add(optAlways);
			Panel3.Dock = System.Windows.Forms.DockStyle.Fill;
			Panel3.Location = new System.Drawing.Point(3, 3);
			Panel3.Name = "Panel3";
			Panel3.Size = new System.Drawing.Size(896, 450);
			Panel3.TabIndex = 0;
			PanelExportCondAll.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			PanelExportCondAll.Controls.Add(Label3);
			PanelExportCondAll.Location = new System.Drawing.Point(27, 95);
			PanelExportCondAll.Name = "PanelExportCondAll";
			PanelExportCondAll.Size = new System.Drawing.Size(190, 138);
			PanelExportCondAll.TabIndex = 1;
			PanelExportCondAll.Visible = false;
			Label3.Location = new System.Drawing.Point(9, 8);
			Label3.Name = "Label3";
			Label3.Size = new System.Drawing.Size(168, 125);
			Label3.TabIndex = 5;
			Label3.Text = "This scene will always be exported";
			PanelSpecificExportOpts.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			PanelSpecificExportOpts.Controls.Add(chkWhenHTML);
			PanelSpecificExportOpts.Controls.Add(chkWhenText);
			PanelSpecificExportOpts.Controls.Add(chkWhenRTFChapters);
			PanelSpecificExportOpts.Controls.Add(chkWhenRTF);
			PanelSpecificExportOpts.Controls.Add(chkWhenLatex);
			PanelSpecificExportOpts.Location = new System.Drawing.Point(232, 95);
			PanelSpecificExportOpts.Name = "PanelSpecificExportOpts";
			PanelSpecificExportOpts.Size = new System.Drawing.Size(210, 169);
			PanelSpecificExportOpts.TabIndex = 4;
			PanelSpecificExportOpts.Visible = false;
			chkWhenHTML.AutoSize = true;
			chkWhenHTML.Location = new System.Drawing.Point(3, 3);
			chkWhenHTML.Name = "chkWhenHTML";
			chkWhenHTML.Size = new System.Drawing.Size(127, 23);
			chkWhenHTML.TabIndex = 0;
			chkWhenHTML.Text = "Exporting HTML";
			chkWhenHTML.UseVisualStyleBackColor = true;
			chkWhenText.AutoSize = true;
			chkWhenText.Location = new System.Drawing.Point(3, 37);
			chkWhenText.Name = "chkWhenText";
			chkWhenText.Size = new System.Drawing.Size(114, 23);
			chkWhenText.TabIndex = 0;
			chkWhenText.Text = "Exporting Text";
			chkWhenText.UseVisualStyleBackColor = true;
			chkWhenRTF.AutoSize = true;
			chkWhenRTF.Location = new System.Drawing.Point(3, 71);
			chkWhenRTF.Name = "chkWhenRTF";
			chkWhenRTF.Size = new System.Drawing.Size(111, 23);
			chkWhenRTF.TabIndex = 0;
			chkWhenRTF.Text = "Exporting RTF";
			chkWhenRTF.UseVisualStyleBackColor = true;
			chkWhenLatex.AutoSize = true;
			chkWhenLatex.Location = new System.Drawing.Point(3, 136);
			chkWhenLatex.Name = "chkWhenLatex";
			chkWhenLatex.Size = new System.Drawing.Size(125, 23);
			chkWhenLatex.TabIndex = 0;
			chkWhenLatex.Text = "Exporting LaTeX";
			chkWhenLatex.UseVisualStyleBackColor = true;
			Label2.AutoSize = true;
			Label2.Location = new System.Drawing.Point(23, 17);
			Label2.Name = "Label2";
			Label2.Size = new System.Drawing.Size(234, 19);
			Label2.TabIndex = 3;
			Label2.Text = "When exporting, include this scene ...";
			optConditions.AutoSize = true;
			optConditions.Location = new System.Drawing.Point(223, 60);
			optConditions.Name = "optConditions";
			optConditions.Size = new System.Drawing.Size(106, 23);
			optConditions.TabIndex = 2;
			optConditions.Text = "Only when ...";
			optConditions.UseVisualStyleBackColor = true;
			optAlways.AutoSize = true;
			optAlways.Checked = true;
			optAlways.Location = new System.Drawing.Point(18, 60);
			optAlways.Name = "optAlways";
			optAlways.Size = new System.Drawing.Size(69, 23);
			optAlways.TabIndex = 1;
			optAlways.TabStop = true;
			optAlways.Text = "Always";
			optAlways.UseVisualStyleBackColor = true;
			tabTime.Controls.Add(fraDHM);
			tabTime.Controls.Add(fraSpecificDateTime);
			tabTime.Controls.Add(fraLasts);
			tabTime.Location = new System.Drawing.Point(4, 26);
			tabTime.Name = "tabTime";
			tabTime.Padding = new System.Windows.Forms.Padding(3);
			tabTime.Size = new System.Drawing.Size(902, 456);
			tabTime.TabIndex = 9;
			tabTime.Text = "Time";
			tabTime.UseVisualStyleBackColor = true;
			fraSpecificDateTime.BackColor = System.Drawing.Color.Transparent;
			fraSpecificDateTime.Controls.Add(Label11);
			fraSpecificDateTime.Controls.Add(Label10);
			fraSpecificDateTime.Controls.Add(cmdSwitchDateMode2);
			fraSpecificDateTime.Controls.Add(lblSpecificTime);
			fraSpecificDateTime.Controls.Add(lblSpecificDate);
			fraSpecificDateTime.Font = new System.Drawing.Font("Segoe UI", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			fraSpecificDateTime.ForeColor = System.Drawing.SystemColors.ControlText;
			fraSpecificDateTime.Location = new System.Drawing.Point(12, 203);
			fraSpecificDateTime.Name = "fraSpecificDateTime";
			fraSpecificDateTime.Padding = new System.Windows.Forms.Padding(0);
			fraSpecificDateTime.RightToLeft = System.Windows.Forms.RightToLeft.No;
			fraSpecificDateTime.Size = new System.Drawing.Size(335, 65);
			fraSpecificDateTime.TabIndex = 26;
			fraSpecificDateTime.TabStop = false;
			fraSpecificDateTime.Text = "Specific Date/Time of scene";
			fraSpecificDateTime.Visible = false;
			Label11.AutoSize = true;
			Label11.Location = new System.Drawing.Point(150, 29);
			Label11.Name = "Label11";
			Label11.Size = new System.Drawing.Size(37, 15);
			Label11.TabIndex = 34;
			Label11.Text = "Time:";
			Label11.TextAlign = System.Drawing.ContentAlignment.TopRight;
			Label10.AutoSize = true;
			Label10.Location = new System.Drawing.Point(5, 29);
			Label10.Name = "Label10";
			Label10.Size = new System.Drawing.Size(34, 15);
			Label10.TabIndex = 34;
			Label10.Text = "Date:";
			Label10.TextAlign = System.Drawing.ContentAlignment.TopRight;
			cmdSwitchDateMode2.AccessibleName = "Switch to day, hour, minute";
			cmdSwitchDateMode2.Location = new System.Drawing.Point(288, 22);
			cmdSwitchDateMode2.Name = "cmdSwitchDateMode2";
			cmdSwitchDateMode2.Size = new System.Drawing.Size(39, 34);
			cmdSwitchDateMode2.TabIndex = 15;
			cmdSwitchDateMode2.Text = "Sw";
			cmdSwitchDateMode2.UseVisualStyleBackColor = true;
			lblSpecificTime.AccessibleName = "Time of scene";
			lblSpecificTime.BackColor = System.Drawing.SystemColors.Window;
			lblSpecificTime.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			lblSpecificTime.Location = new System.Drawing.Point(199, 28);
			lblSpecificTime.Name = "lblSpecificTime";
			lblSpecificTime.Size = new System.Drawing.Size(74, 23);
			lblSpecificTime.TabIndex = 14;
			lblSpecificTime.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			lblSpecificDate.AccessibleName = "Date of scene";
			lblSpecificDate.BackColor = System.Drawing.SystemColors.Window;
			lblSpecificDate.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			lblSpecificDate.Location = new System.Drawing.Point(53, 28);
			lblSpecificDate.Name = "lblSpecificDate";
			lblSpecificDate.Size = new System.Drawing.Size(91, 23);
			lblSpecificDate.TabIndex = 13;
			lblSpecificDate.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			tabRatings.Controls.Add(GroupBox1);
			tabRatings.Location = new System.Drawing.Point(4, 26);
			tabRatings.Name = "tabRatings";
			tabRatings.Padding = new System.Windows.Forms.Padding(3);
			tabRatings.Size = new System.Drawing.Size(902, 456);
			tabRatings.TabIndex = 10;
			tabRatings.Text = "Ratings";
			tabRatings.UseVisualStyleBackColor = true;
			GroupBox1.Controls.Add(cmbField0);
			GroupBox1.Controls.Add(lblField2);
			GroupBox1.Controls.Add(cmbField2);
			GroupBox1.Controls.Add(lblField3);
			GroupBox1.Controls.Add(lblField1);
			GroupBox1.Controls.Add(cmbField1);
			GroupBox1.Controls.Add(cmbField3);
			GroupBox1.Controls.Add(lblField0);
			GroupBox1.Location = new System.Drawing.Point(15, 25);
			GroupBox1.Name = "GroupBox1";
			GroupBox1.Size = new System.Drawing.Size(255, 182);
			GroupBox1.TabIndex = 6;
			GroupBox1.TabStop = false;
			GroupBox1.Text = "Ratings";
			Splitter1.Dock = System.Windows.Forms.DockStyle.Bottom;
			Splitter1.Location = new System.Drawing.Point(0, 521);
			Splitter1.Margin = new System.Windows.Forms.Padding(0);
			Splitter1.MinimumSize = new System.Drawing.Size(0, 5);
			Splitter1.Name = "Splitter1";
			Splitter1.Size = new System.Drawing.Size(916, 7);
			Splitter1.TabIndex = 76;
			Splitter1.TabStop = false;
			TimerFillFontCombo.Interval = 1000;
			TableLayoutPanel8.ColumnCount = 2;
			TableLayoutPanel8.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel8.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel8.Controls.Add(ListView1, 0, 0);
			TableLayoutPanel8.Controls.Add(ListView2, 0, 0);
			TableLayoutPanel8.Dock = System.Windows.Forms.DockStyle.Fill;
			TableLayoutPanel8.Location = new System.Drawing.Point(3, 3);
			TableLayoutPanel8.Name = "TableLayoutPanel8";
			TableLayoutPanel8.RowCount = 1;
			TableLayoutPanel8.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel8.Size = new System.Drawing.Size(688, 437);
			TableLayoutPanel8.TabIndex = 0;
			TimerSpeed.Enabled = true;
			TimerSpeed.Interval = 1000;
			PanelTabs.Controls.Add(TabControl2);
			PanelTabs.Dock = System.Windows.Forms.DockStyle.Fill;
			PanelTabs.Location = new System.Drawing.Point(0, 29);
			PanelTabs.Name = "PanelTabs";
			PanelTabs.Padding = new System.Windows.Forms.Padding(3);
			PanelTabs.Size = new System.Drawing.Size(916, 492);
			PanelTabs.TabIndex = 0;
			base.AutoScaleDimensions = new System.Drawing.SizeF(7f, 17f);
			base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			BackColor = System.Drawing.SystemColors.Control;
			base.ClientSize = new System.Drawing.Size(916, 629);
			base.Controls.Add(PanelTabs);
			base.Controls.Add(Splitter1);
			base.Controls.Add(MainMenu1);
			base.Controls.Add(TableChapterSceneSelect);
			base.Controls.Add(Panel2);
			base.Controls.Add(StatusStrip1);
			Cursor = System.Windows.Forms.Cursors.Default;
			DoubleBuffered = true;
			Font = new System.Drawing.Font("Segoe UI", 10f);
			base.Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon");
			base.KeyPreview = true;
			base.Location = new System.Drawing.Point(4, 43);
			base.MainMenuStrip = MainMenu1;
			MinimumSize = new System.Drawing.Size(400, 278);
			base.Name = "frmEditor";
			RightToLeft = System.Windows.Forms.RightToLeft.No;
			base.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
			Text = "Editor";
			ctxListsRC.ResumeLayout(false);
			MainMenu1.ResumeLayout(false);
			MainMenu1.PerformLayout();
			ctxRC.ResumeLayout(false);
			ToolStripFontbar.ResumeLayout(false);
			ToolStripFontbar.PerformLayout();
			StatusStrip1.ResumeLayout(false);
			StatusStrip1.PerformLayout();
			TableChapterSceneSelect.ResumeLayout(false);
			TableChapterSceneSelect.PerformLayout();
			TableLayoutPanel3.ResumeLayout(false);
			TableLayoutPanel3.PerformLayout();
			fraDHM.ResumeLayout(false);
			fraDHM.PerformLayout();
			fraLasts.ResumeLayout(false);
			fraLasts.PerformLayout();
			TableLayoutPanel4.ResumeLayout(false);
			Panel2.ResumeLayout(false);
			Panel2.PerformLayout();
			TableLayoutPanel6.ResumeLayout(false);
			TableLayoutPanel6.PerformLayout();
			TabControl2.ResumeLayout(false);
			TabContent.ResumeLayout(false);
			TabContent.PerformLayout();
			PanelMainTextPadding.ResumeLayout(false);
			TabDetails.ResumeLayout(false);
			TableLayoutMainDetails.ResumeLayout(false);
			TableLayoutMainDetails.PerformLayout();
			GroupBox2.ResumeLayout(false);
			GroupBox2.PerformLayout();
			TabCharacters.ResumeLayout(false);
			TabCharacters.PerformLayout();
			TableLayoutPanel5.ResumeLayout(false);
			TabPage1.ResumeLayout(false);
			TableLayoutPanel7.ResumeLayout(false);
			TabItems.ResumeLayout(false);
			TableLayoutPanel9.ResumeLayout(false);
			TabNotes.ResumeLayout(false);
			tabImage.ResumeLayout(false);
			tabImage.PerformLayout();
			((System.ComponentModel.ISupportInitialize)Picture1).EndInit();
			((System.ComponentModel.ISupportInitialize)Image2).EndInit();
			tabGoals.ResumeLayout(false);
			GroupBox4.ResumeLayout(false);
			GroupBox4.PerformLayout();
			GroupBox3.ResumeLayout(false);
			GroupBox3.PerformLayout();
			TabPage2.ResumeLayout(false);
			Panel3.ResumeLayout(false);
			Panel3.PerformLayout();
			PanelExportCondAll.ResumeLayout(false);
			PanelSpecificExportOpts.ResumeLayout(false);
			PanelSpecificExportOpts.PerformLayout();
			tabTime.ResumeLayout(false);
			fraSpecificDateTime.ResumeLayout(false);
			fraSpecificDateTime.PerformLayout();
			tabRatings.ResumeLayout(false);
			GroupBox1.ResumeLayout(false);
			TableLayoutPanel8.ResumeLayout(false);
			PanelTabs.ResumeLayout(false);
			ResumeLayout(false);
			PerformLayout();
		}

		public frmEditor(ref clsProject ProjectClass, int ScID)
		{
			base.KeyDown += frmEditor_KeyDown;
			base.KeyUp += frmEditor_KeyUp;
			base.FormClosing += frmEditor_FormClosing;
			base.Load += frmEditor_Load;
			cFill = new clsFillList();
			cPC = new clsPrintScene();
			WPSWordsTyped = 0;
			WPSSeconds = 0;
			WPSPeak = 0;
			cRTF = new clsRTF(ref clsShared.cLog, ref clsShared.cSettings);
			TBHidden = new RichTextBox();
			strMainTextComparer = "";
			CapitaliseFirst = true;
			CapitaliseI = true;
			CapPrePreChar = "";
			CapPreChar = "";
			CapPPChar = "";
			CapPChar = "";
			cmbFieldVal = new ComboBox[5];
			lblFieldTitle = new Label[5];
			DefaultCharColour = cColours.BlueInk;
			CharColour = DefaultCharColour;
			DefaultLocationsColour = Color.Turquoise;
			LocationsColour = DefaultLocationsColour;
			DefaultItemsColour = Color.MediumOrchid;
			ItemsColour = DefaultItemsColour;
			DefaultSpellingcolour = cColours.DarkRedInk;
			Spellingcolour = DefaultSpellingcolour;
			TypewriterSounds = false;
			colUndo = new Collection();
			iUndo = 0;
			PreviousBackupContent = "";
			WordCountTextlength = -1;
			UseRightControl = true;
			AllowTabsInEditor = false;
			ProjectImageFolder = "";
			KeyPressCounter = 0;
			MALeft = new Panel();
			MARight = new Panel();
			MATop = new Panel();
			MABottom = new Panel();
			try
			{
				if (!Initialising)
				{
					Initialising = true;
					SuppressComboChange = true;
					SuppressSnapshot = true;
					LocalScID = ScID;
					InitializeComponent();
					SetupControlArrays();
					cProject = ProjectClass;
					DefaultBackgroundInk = txtMain.BackColor;
					txtMain.Dock = DockStyle.Fill;
					if (Operators.CompareString(clsShared.cLang.CurrentLanguage, "English", TextCompare: false) != 0)
					{
						clsShared.cLang.TranslateForm(this);
					}
					ReadEditorSettings();
					FillCombos();
					try
					{
						Find = new frmFind(ref clsShared.cLog, ref clsShared.cLang);
					}
					catch (Exception ex)
					{
						ProjectData.SetProjectError(ex);
						Exception ex2 = ex;
						clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
						ProjectData.ClearProjectError();
					}
					SuppressSnapshot = false;
					Initialising = false;
				}
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void cmbAction_SelectedIndexChanged(object eventSender, EventArgs eventArgs)
		{
			//Discarded unreachable code: IL_0024, IL_003a, IL_0044, IL_0051, IL_0083, IL_0085, IL_0099, IL_00bb
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (!SuppressComboChange)
				{
					num2 = 4;
					Dirty = true;
					num2 = 5;
					SetGoalsLabels();
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_00b9: Could not find block for branch target IL_0085*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void cmbChapter_SelectedIndexChanged(object eventSender, EventArgs eventArgs)
		{
			if (!SuppressComboChange)
			{
				SwitchChapter(GoingUp: false);
			}
		}

		private void SwitchScene()
		{
			try
			{
				int num = Conversions.ToInteger(((clsComboItem)cmbScene.SelectedItem).ID);
				if (num != LocalScID)
				{
					StopWCTimer();
					StopBackupTimer();
					TabControl2.SuspendLayout();
					SaveFormSettings();
					EditorDone = true;
					SaveChanges(SpellCheckAfterIfOn: false);
					TabControl2.ResumeLayout();
					EditDifferentSceneEvent?.Invoke(num, TabControl2.SelectedIndex, CurrentSearchString);
					TimerExit.Start();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void cmbField_SelectedIndexChanged(object eventSender, EventArgs eventArgs)
		{
			if (!SuppressComboChange)
			{
				try
				{
					int num = Conversions.ToInteger(((ComboBox)eventSender).Tag);
					if (num >= 0 && num <= 3)
					{
						Dirty = true;
					}
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void cmbFontChanged(object eventSender, EventArgs eventArgs)
		{
			if (!SuppressComboChange)
			{
				try
				{
					string text = cmbFont.Text;
					clsRTF clsRTF = cRTF;
					RichTextBox RTB = txtMain;
					clsRTF.SetFont(ref RTB, text);
					txtMain = RTB;
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void cmbFontSize_SelectedIndexChanged(object sender, EventArgs e)
		{
			if (!SuppressComboChange)
			{
				try
				{
					int num = Conversions.ToInteger(cmbFontSize.Text);
					clsRTF clsRTF = cRTF;
					RichTextBox RTB = txtMain;
					clsRTF.SetFontSize(ref RTB, num);
					txtMain = RTB;
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void cmbPlot_SelectedIndexChanged(object eventSender, EventArgs eventArgs)
		{
			if (!SuppressComboChange)
			{
				Dirty = true;
			}
		}

		private void cmbViewpoint_SelectedIndexChanged(object eventSender, EventArgs eventArgs)
		{
			if (SuppressComboChange)
			{
				return;
			}
			Dirty = true;
			int num = Conversions.ToInteger(((clsComboItem)cmbViewpoint.SelectedItem).ID);
			if (cProject.get_SceneByID(LocalScID).ViewPointID != num)
			{
				cProject.get_SceneByID(LocalScID).SetViewpointByID(num);
				clsFillList clsFillList = cFill;
				clsProject clsProject = cProject;
				ListView aList = ListCharUsed;
				clsFillList.FillCharInScene(clsProject, ref aList, LocalScID, MajorOnly: false);
				ListCharUsed = aList;
				if (ListCharUsed.Items.Count > 0)
				{
					ListCharUsed.Items[0].Selected = true;
				}
			}
			DisplayCharacter(num);
		}

		private void cmdAddChar_Click(object eventSender, EventArgs eventArgs)
		{
			if (FullScreenEditorWithMarginsToolStripMenuItem.Checked | FullScreenEditorToolStripMenu.Checked)
			{
				base.TopMost = false;
			}
			modEditChar.AddEditChars(ref cProject, ShowChooser: false);
			if (FullScreenEditorWithMarginsToolStripMenuItem.Checked | FullScreenEditorToolStripMenu.Checked)
			{
				base.TopMost = true;
			}
		}

		private void cmdEditChar_Click(object eventSender, EventArgs eventArgs)
		{
			if (FullScreenEditorWithMarginsToolStripMenuItem.Checked | FullScreenEditorToolStripMenu.Checked)
			{
				base.TopMost = false;
			}
			int num = CurrentVPID();
			if (num > 0 && modEditChar.EditChar(ref cProject, num))
			{
				DisplayCharacter(num);
			}
			if (FullScreenEditorWithMarginsToolStripMenuItem.Checked | FullScreenEditorToolStripMenu.Checked)
			{
				base.TopMost = true;
			}
		}

		private void cmbScene_SelectedIndexChanged(object eventSender, EventArgs eventArgs)
		{
			if (!SuppressComboChange)
			{
				SwitchScene();
			}
		}

		private void cmbStatus_SelectedIndexChanged(object eventSender, EventArgs eventArgs)
		{
			if (!SuppressComboChange)
			{
				Dirty = true;
			}
		}

		private void cmbViewPoint_KeyDown(object eventSender, KeyEventArgs eventArgs)
		{
			Dirty = true;
		}

		private void frmEditor_KeyDown(object eventSender, KeyEventArgs eventArgs)
		{
			if (((0 - ((!UseRightControl) ? 1 : 0)) & (int)(eventArgs.KeyData & Keys.RControlKey)) == 0)
			{
				LastKeypress = DateAndTime.Now;
				if (eventArgs.Control && eventArgs.KeyCode == Keys.S)
				{
					eventArgs.Handled = true;
					SaveChanges(SpellCheckAfterIfOn: true);
				}
				if (eventArgs.KeyCode == Keys.F7)
				{
					SpellCheck(Force: true);
				}
				if ((eventArgs.KeyCode == Keys.Space) | (eventArgs.KeyCode == Keys.Return))
				{
					WPSWordsTyped++;
				}
			}
		}

		private void lblAltNames_Click(object eventSender, EventArgs eventArgs)
		{
			int num = Conversions.ToInteger(lblSelectedCharID.Text);
			if (num > 0 && modEditChar.EditChar(ref cProject, num))
			{
				DisplayCharacter(num);
			}
		}

		private void lblFullName_Click(object eventSender, EventArgs eventArgs)
		{
			int num = Conversions.ToInteger(lblSelectedCharID.Text);
			if (num > 0 && modEditChar.EditChar(ref cProject, num))
			{
				DisplayCharacter(num);
			}
		}

		private void EditSelectedCharacter(ListView aList)
		{
			try
			{
				int num = SelectedID(aList);
				if (num > 0 && modEditChar.EditChar(ref cProject, num))
				{
					DisplayCharacter(num);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void EditSelectedLocation(ListView aList)
		{
			try
			{
				int num = SelectedID(aList);
				if (num > 0)
				{
					modEditLocation.EditLocation(ref cProject, num);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void EditSelectedItem(ListView aList)
		{
			try
			{
				int num = SelectedID(aList);
				if (num > 0)
				{
					modEditItem.EditItem(ref cProject, num);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private int SelectedID(ListView aList)
		{
			int result = default(int);
			try
			{
				if (aList.FocusedItem != null)
				{
					result = Conversions.ToInteger(aList.FocusedItem.Tag);
					return result;
				}
				return result;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
				return result;
			}
		}

		public void mnuBarCopy_Click(object eventSender, EventArgs eventArgs)
		{
			CopySelectedToClipboard();
		}

		public void mnuBarPaste_Click(object eventSender, EventArgs eventArgs)
		{
			PasteClipboardToWindow();
		}

		public void mnuClear_Click(object eventSender, EventArgs eventArgs)
		{
			StorePos();
			try
			{
				txtMain.Rtf = CleanRTF();
				txtMain.ClearUndo();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
			try
			{
				HighlightCharLocItemsIfNeeded();
				RestorePos();
				txtMain.Focus();
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				ProjectData.ClearProjectError();
			}
		}

		private void cmdHide_Click(object eventSender, EventArgs eventArgs)
		{
			Maxed = !Maxed;
			try
			{
				clsShared.cSettings.sSet("EditorMaxed", Maxed);
				txtMain.Focus();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		public void mnuFindNext_Click(object eventSender, EventArgs eventArgs)
		{
			//Discarded unreachable code: IL_003d, IL_0053, IL_005d, IL_006a, IL_009c, IL_009e, IL_00b2, IL_00d4
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (Operators.CompareString(CurrentSearchString, "", TextCompare: false) == 0)
				{
					num2 = 3;
					ShowFind(HideReplace: true);
				}
				else
				{
					num2 = 5;
					FindNext(CurrentSearchString, CurrentSensitive);
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_00d2: Could not find block for branch target IL_009e*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		public void mnuFindPrev_Click(object eventSender, EventArgs eventArgs)
		{
			FindPrev();
		}

		public void mnuInstallDictionary_Click(object eventSender, EventArgs eventArgs)
		{
			if (clsShared.cLang.TransMsgBox("This will download the dictionary and unpack it. Are you sure? (Approx 1.5mb)", MsgBoxStyle.YesNo) != MsgBoxResult.No)
			{
				string str = Path.Combine(modVariables.DATAPATH, "Dict");
				try
				{
					string filename = Path.Combine(modVariables.DATAPATH, clsShared.cFile.FileOnly(Strings.Replace("http://downloads.sourceforge.net/project/wordlist/12Dicts/5.0/12dicts-5.0.zip", "/", "\\")));
					clsShared.cFile.EraseFile(filename);
					clsShared.cWWW.WebSiteVisit("http://downloads.sourceforge.net/project/wordlist/12Dicts/5.0/12dicts-5.0.zip");
					Interaction.MsgBox("After downloading the 12dicts file, unpack it to " + str);
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
				Text = cProject.get_SceneByID(LocalScID).Title;
			}
		}

		public void mnuNewScene_Click(object eventSender, EventArgs eventArgs)
		{
			//Discarded unreachable code: IL_0052, IL_0068, IL_0072, IL_007f, IL_00b1, IL_00b3, IL_00c7, IL_00e9
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				SaveChanges(SpellCheckAfterIfOn: false);
				num2 = 3;
				clsComboItem clsComboItem = (clsComboItem)cmbChapter.SelectedItem;
				num2 = 4;
				int belongsToChID = Conversions.ToInteger(clsComboItem.ID);
				num2 = 5;
				CreateNewSceneEvent?.Invoke(belongsToChID, 0, LocalScID);
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_00e7: Could not find block for branch target IL_00b3*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		public void mnuInsertScene_Click(object eventSender, EventArgs eventArgs)
		{
			SaveChanges(SpellCheckAfterIfOn: false);
			try
			{
				int belongsToChID = Conversions.ToInteger(((clsComboItem)cmbChapter.SelectedItem).ID);
				CreateNewSceneEvent?.Invoke(belongsToChID, LocalScID, 0);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuEdit_Click(object eventSender, EventArgs eventArgs)
		{
			if (!MyProject.Computer.Clipboard.ContainsText())
			{
				mnuBarPaste.Enabled = false;
			}
			else
			{
				mnuBarPaste.Enabled = true;
			}
			if (txtMain.SelectionLength == 0)
			{
				mnuBarCopy.Enabled = false;
			}
			else
			{
				mnuBarCopy.Enabled = true;
			}
		}

		private void frmEditor_KeyUp(object eventSender, KeyEventArgs eventArgs)
		{
			//Discarded unreachable code: IL_011f, IL_0136, IL_0141, IL_0151, IL_01d7, IL_01d9, IL_01ed, IL_020f
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (eventArgs.KeyCode == Keys.F3)
				{
					num2 = 3;
					eventArgs.SuppressKeyPress = true;
					num2 = 4;
					if (Operators.CompareString(CurrentSearchString, "", TextCompare: false) == 0)
					{
						num2 = 5;
						ShowFind(HideReplace: true);
					}
					else
					{
						num2 = 7;
						if (eventArgs.Shift)
						{
							num2 = 8;
							FindPrev(CurrentSearchString, CurrentSensitive);
						}
						else
						{
							num2 = 10;
							FindNext(CurrentSearchString, CurrentSensitive);
						}
					}
				}
				num2 = 11;
				if (eventArgs.KeyCode == Keys.F11)
				{
					num2 = 12;
					eventArgs.SuppressKeyPress = true;
					num2 = 13;
					FullScreenEditorToolStripMenu.PerformClick();
				}
				num2 = 14;
				if (eventArgs.KeyCode == Keys.Escape)
				{
					num2 = 15;
					if (FullScreenEditorToolStripMenu.Checked)
					{
						num2 = 16;
						eventArgs.SuppressKeyPress = true;
						num2 = 17;
						NormalEditorWindow();
					}
					else
					{
						num2 = 19;
						if (FullScreenEditorWithMarginsToolStripMenuItem.Checked)
						{
							num2 = 20;
							eventArgs.SuppressKeyPress = true;
							num2 = 21;
							NormalEditorWindow();
						}
						else
						{
							num2 = 23;
							if (TiledEditorWindowsToolStripMenuItem.Checked)
							{
								num2 = 24;
								eventArgs.SuppressKeyPress = true;
								num2 = 25;
								NormalEditorWindow();
							}
						}
					}
					num2 = 26;
					ResetFullScreenCheckmarks(eWindowStyle.None);
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_020d: Could not find block for branch target IL_01d9*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void frmEditor_FormClosing(object eventSender, FormClosingEventArgs eventArgs)
		{
			if (eventArgs.CloseReason == CloseReason.UserClosing)
			{
				eventArgs.Cancel = true;
				AskIfSave();
				ExitForm();
			}
			if (Talking)
			{
				StopTalking();
			}
		}

		public void mnuExit_Click(object eventSender, EventArgs eventArgs)
		{
			AskIfSave();
			ExitForm();
		}

		public void mnuFind_Click(object eventSender, EventArgs eventArgs)
		{
			ShowFind(HideReplace: true);
		}

		private void Find_DoPrevious(string NewSearchString, bool IsCaseSensitive)
		{
			CurrentSearchString = NewSearchString;
			CurrentSensitive = IsCaseSensitive;
			FindPrev();
		}

		private void CopySelectedToClipboard()
		{
			if (Operators.CompareString(txtMain.SelectedText, "", TextCompare: false) != 0)
			{
				MyProject.Computer.Clipboard.Clear();
				MyProject.Computer.Clipboard.SetText(txtMain.SelectedText);
			}
		}

		private void PasteClipboardToWindow()
		{
			try
			{
				txtMain.SelectedRtf = MyProject.Computer.Clipboard.GetText();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				txtMain.SelectedText = MyProject.Computer.Clipboard.GetText();
				ProjectData.ClearProjectError();
			}
			Dirty = true;
		}

		public void mnuPrintScene_Click(object eventSender, EventArgs eventArgs)
		{
			int localScID = LocalScID;
			if (localScID > 0)
			{
				cPC.PrintScene(cProject, localScID, TextOnly: false);
			}
		}

		public void mnuReplace_Click(object eventSender, EventArgs eventArgs)
		{
			ShowFind(HideReplace: false);
		}

		public void mnuSave_Click(object eventSender, EventArgs eventArgs)
		{
			SaveChanges(SpellCheckAfterIfOn: true);
		}

		public void mnuSaveAndExit_Click(object eventSender, EventArgs eventArgs)
		{
			SaveChanges(SpellCheckAfterIfOn: false);
			ExitForm();
		}

		public void mnuSelectFont_Click(object eventSender, EventArgs eventArgs)
		{
			modVariables.Fonts.ShowDialog();
			if (modVariables.Fonts.Saved)
			{
				cmbFont.Text = modVariables.Fonts.cmbFont.Text;
				cmbFontSize.Text = modVariables.Fonts.cmbFontSize.Text;
			}
		}

		public void mnuSettings_Click(object eventSender, EventArgs eventArgs)
		{
			new frmEditorSettings().ShowDialog();
		}

		public void mnuCheckNow_Click(object eventSender, EventArgs eventArgs)
		{
			SpellCheck(Force: true);
		}

		public void mnuSpellingOn_Click(object eventSender, EventArgs eventArgs)
		{
			if (mnuSpellingOn.Checked)
			{
				clsShared.cSettings.sSet("AutoSpell", false);
				mnuSpellingOn.Checked = false;
			}
			else
			{
				clsShared.cSettings.sSet("AutoSpell", true);
				mnuSpellingOn.Checked = true;
			}
		}

		public void mnuSplitScene_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				string splitMarker = Conversions.ToString(((ToolStripMenuItem)eventSender).Tag);
				DoSplit(splitMarker);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		public void mnuSplitSceneCustom_Click(object eventSender, EventArgs eventArgs)
		{
			string text = Interaction.InputBox("Enter the characters you want to split this scene on (e.g. '%-%')", "Custom scene splitting");
			if (Operators.CompareString(text, "", TextCompare: false) != 0)
			{
				DoSplit(text);
			}
		}

		private void DoSplit(string SplitMarker)
		{
			//Discarded unreachable code: IL_0308, IL_031f, IL_032a, IL_033a, IL_0404, IL_0406, IL_041a, IL_043c
			int num = default(int);
			int num5 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (Strings.InStr(txtMain.Text, SplitMarker) == 0)
				{
					num2 = 3;
					clsShared.cLang.TransMsgBox("I can't see any @1@ separators in the text. Split cancelled.", MsgBoxStyle.OkOnly, "", SplitMarker);
				}
				else
				{
					num2 = 5;
					if (clsShared.cLang.TransMsgBox("Are you sure you want to split this scene on '@1@' markers?", MsgBoxStyle.YesNo, "", SplitMarker) != MsgBoxResult.No)
					{
						num2 = 7;
						SaveChanges(SpellCheckAfterIfOn: true);
						num2 = 8;
						Dirty = true;
						num2 = 9;
						clsRTF clsRTF = new clsRTF(ref clsShared.cLog, ref clsShared.cSettings);
						num2 = 10;
						int belongsToChID = cProject.get_SceneByID(LocalScID).BelongsToChID;
						num2 = 11;
						int num3 = cmbScene.SelectedIndex + 1;
						int num4;
						do
						{
							num2 = 13;
							num4 = Strings.InStrRev(txtMain.Text, SplitMarker);
							num2 = 14;
							if (num4 > 0)
							{
								num2 = 15;
								txtMain.Select(num4 - 1, txtMain.Text.Length - num4 + 1);
								num2 = 16;
								clsRTF.SetRTF(txtMain.SelectedRtf);
								num2 = 17;
								txtMain.SelectedText = "";
								num2 = 18;
								clsRTF.txtMain.Select(0, Strings.Len(SplitMarker));
								num2 = 19;
								clsRTF.txtMain.SelectedText = "";
								num2 = 20;
								if (clsRTF.GetPlain().StartsWith("\r"))
								{
									num2 = 21;
									clsRTF.ReplaceAt(0, "\r", "");
								}
								num2 = 22;
								if (clsRTF.GetPlain().StartsWith("\n"))
								{
									num2 = 23;
									clsRTF.ReplaceAt(0, "\n", "");
								}
								num2 = 24;
								clsScene Scene = new clsScene();
								num2 = 25;
								Scene.V6 = cProject.V6File;
								num2 = 26;
								Scene.TextRTF = clsRTF.GetRTF();
								num2 = 27;
								Scene.Title = "Scene";
								num2 = 28;
								Scene.DescText = "";
								num2 = 29;
								Scene.Goal = "";
								num2 = 30;
								Scene.Conflict = "";
								num2 = 31;
								Scene.Outcome = "";
								num2 = 32;
								if (cProject.get_SceneByID(LocalScID).ViewPointID == 0)
								{
									num2 = 33;
									Scene.SetViewpointByID(1);
								}
								else
								{
									num2 = 35;
									Scene.SetViewpointByID(cProject.get_SceneByID(LocalScID).ViewPointID);
								}
								num2 = 36;
								Scene.ForceWordcount();
								num2 = 37;
								cProject.AddSceneToProjectAndChapter(ref Scene, belongsToChID, num3 + 1);
								num2 = 38;
								Scene.SaveRTFV5(cProject.ProjectPath());
							}
							num2 = 39;
						}
						while (num4 != 0);
						num2 = 40;
						cProject.get_SceneByID(LocalScID).ForceWordcount();
						num2 = 41;
						clsScene cScene = cProject.get_SceneByID(LocalScID);
						FillAllCombos(ref cScene);
						num2 = 42;
						cProject.QuickSave();
						num2 = 43;
						txtMain.Select(0, 0);
					}
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num5 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_043a: Could not find block for branch target IL_0406*/;
			}
			if (num5 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		public void mnuTop20_Click(object eventSender, EventArgs eventArgs)
		{
			//Discarded unreachable code: IL_0064, IL_007b, IL_0086, IL_0096, IL_00d8, IL_00da, IL_00ee, IL_0110
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				clsShared.cSubs.BusyMouse();
				num2 = 3;
				Collection colHash = new Collection();
				num2 = 4;
				modWordcount.BreakAndHash(ref colHash, txtMain.Text);
				num2 = 5;
				frmWordCount frmWordCount = new frmWordCount();
				num2 = 6;
				frmWordCount.FillForm(colHash, WithSort: true);
				num2 = 7;
				colHash.Clear();
				num2 = 8;
				clsShared.cSubs.NormalMouse();
				num2 = 9;
				frmWordCount.ShowDialog();
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_010e: Could not find block for branch target IL_00da*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void TimerWC_Tick(object eventSender, EventArgs eventArgs)
		{
			StopWCTimer();
			if (DateAndTime.Now.Subtract(LastKeypress).TotalSeconds > 3.0 && mvarDirty)
			{
				ShowSceneWordCount();
			}
			if (!EditorDone)
			{
				StartWCTimer();
			}
		}

		private void txtCharDesc_DoubleClick(object eventSender, EventArgs eventArgs)
		{
			int num = Conversions.ToInteger(lblSelectedCharID.Text);
			if (num > 0 && modEditChar.EditChar(ref cProject, num, 1))
			{
				DisplayCharacter(num);
			}
		}

		private void txtCharNotes_DoubleClick(object eventSender, EventArgs eventArgs)
		{
			int num = Conversions.ToInteger(lblSelectedCharID.Text);
			if (num > 0 && modEditChar.EditChar(ref cProject, num, 2))
			{
				DisplayCharacter(num);
			}
		}

		private void txtConflict_KeyDown(object eventSender, KeyEventArgs eventArgs)
		{
			Dirty = true;
		}

		private void txtGoal_KeyDown(object eventSender, KeyEventArgs eventArgs)
		{
			Dirty = true;
		}

		private void SaveChanges(bool SpellCheckAfterIfOn)
		{
			//Discarded unreachable code: IL_00f7, IL_010e, IL_0119, IL_0129, IL_019b, IL_019d, IL_01b1, IL_01d3
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				StopBackupTimer();
				num2 = 3;
				StopWCTimer();
				num2 = 4;
				Dirty = false;
				num2 = 5;
				clsScene cScene = cProject.get_SceneByID(LocalScID);
				num2 = 6;
				modVariables.EditorLeft = base.Left;
				num2 = 7;
				modVariables.EditorTop = base.Top;
				num2 = 8;
				if (Operators.CompareString(txtMain.Text.Trim(), "", TextCompare: false) != 0)
				{
					num2 = 9;
					AutoBackup(ForceIt: false);
				}
				num2 = 10;
				FormToData(ref cScene);
				num2 = 11;
				cScene.SaveRTFV5(cProject.ProjectPath());
				num2 = 12;
				if (SpellCheckAfterIfOn)
				{
					num2 = 13;
					SpellCheck(Force: false);
				}
				num2 = 14;
				ShowSceneWordCount();
				num2 = 15;
				cScene.Save();
				num2 = 16;
				Saved = true;
				num2 = 17;
				Dirty = false;
				num2 = 18;
				if (!EditorDone)
				{
					num2 = 19;
					StartBackupTimer();
					num2 = 20;
					StartWCTimer();
					num2 = 21;
					BringToFront();
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_01d1: Could not find block for branch target IL_019d*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		public void EditScene(int ScID, int DisplayTab = 0)
		{
			EditorDone = false;
			Saved = false;
			StopBackupTimer();
			StopWCTimer();
			LocalScID = ScID;
			try
			{
				Text = cProject.get_SceneByID(LocalScID).Title;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				tssStatus.Text = "Last Autosave: None";
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				ProjectData.ClearProjectError();
			}
			Dirty = false;
			RefreshSettings();
			FillCombos();
			try
			{
				DataToForm(LocalScID, TextToo: true);
			}
			catch (Exception ex5)
			{
				ProjectData.SetProjectError(ex5);
				Exception ex6 = ex5;
				ProjectData.ClearProjectError();
			}
			txtMain.Select(0, 0);
			SpellCheck(Force: false);
			StartWCTimer();
			SequentialBackupTimer = 0;
			FirstBackup = true;
			PreviousBackupContent = txtMain.Rtf;
			TimerBackup.Interval = 5000;
			TimerBackup.Start();
			Dirty = false;
			try
			{
				TabControl2.SelectedTab = TabControl2.TabPages[DisplayTab];
			}
			catch (Exception ex7)
			{
				ProjectData.SetProjectError(ex7);
				Exception ex8 = ex7;
				ProjectData.ClearProjectError();
			}
			AddAllHandlers();
		}

		private void SwitchChapter(bool GoingUp)
		{
			//Discarded unreachable code: IL_0124, IL_013b, IL_0146, IL_0156, IL_01c0, IL_01c2, IL_01d6, IL_01f8
			int num = default(int);
			int num4 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (!SuppressComboChange)
				{
					num2 = 3;
					clsComboItem clsComboItem = (clsComboItem)cmbChapter.SelectedItem;
					num2 = 4;
					int num3 = Conversions.ToInteger(clsComboItem.ID);
					num2 = 5;
					if (num3 != cProject.get_SceneByID(LocalScID).BelongsToChID)
					{
						num2 = 6;
						EditorDone = true;
						num2 = 7;
						SaveChanges(SpellCheckAfterIfOn: false);
						num2 = 8;
						StopBackupTimer();
						num2 = 9;
						StopWCTimer();
						num2 = 10;
						int newScID;
						if (cProject.get_ChapterByID(num3).SceneCount == 0)
						{
							num2 = 11;
							newScID = AddSceneToChapter(num3);
						}
						else
						{
							num2 = 13;
							if (GoingUp)
							{
								num2 = 14;
								newScID = cProject.get_ChapterByID(num3).get_SceneIDByIndex(1);
							}
							else
							{
								num2 = 16;
								newScID = cProject.get_ChapterByID(num3).get_SceneIDByIndex(cProject.get_ChapterByID(num3).SceneCount);
							}
						}
						num2 = 17;
						SaveFormSettings();
						num2 = 18;
						EditDifferentSceneEvent?.Invoke(newScID, TabControl2.SelectedIndex, CurrentSearchString);
						num2 = 19;
						TimerExit.Start();
					}
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num4 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_01f6: Could not find block for branch target IL_01c2*/;
			}
			if (num4 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void AskIfSave()
		{
			//Discarded unreachable code: IL_0045, IL_005c, IL_0067, IL_0074, IL_00ae, IL_00b0, IL_00c4, IL_00e6
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (Dirty)
				{
					num2 = 3;
					if (clsShared.cLang.TransMsgBox("File has been changed. Save it?", MsgBoxStyle.YesNo) == MsgBoxResult.Yes)
					{
						num2 = 4;
						SaveChanges(SpellCheckAfterIfOn: false);
					}
					else
					{
						num2 = 6;
						Dirty = false;
						num2 = 7;
						Saved = false;
					}
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_00e4: Could not find block for branch target IL_00b0*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void FillChapterCombo()
		{
			//Discarded unreachable code: IL_00b6, IL_00cd, IL_00d8, IL_00e8, IL_012e, IL_0130, IL_0144, IL_0166
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				SuppressComboChange = true;
				num2 = 3;
				cmbChapter.Items.Clear();
				num2 = 4;
				cmbChapter.DisplayMember = "Title";
				num2 = 5;
				IEnumerator enumerator = cProject.Chapters.GetEnumerator();
				while (enumerator.MoveNext())
				{
					clsChapter clsChapter = (clsChapter)enumerator.Current;
					num2 = 6;
					clsComboItem item = new clsComboItem(Conversions.ToString(clsChapter.ID), clsChapter.Title);
					num2 = 7;
					cmbChapter.Items.Add(item);
					num2 = 8;
				}
				num2 = 9;
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
				num2 = 10;
				SuppressComboChange = false;
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0164: Could not find block for branch target IL_0130*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		public void mnuWritingTips_Click(object eventSender, EventArgs eventArgs)
		{
			clsShared.cLang.TransMsgBox(NextReminder());
		}

		public void mnuyBook_Click(object eventSender, EventArgs eventArgs)
		{
			string text = Path.Combine(cProject.ProjectPath(), "ybook_temp_" + Conversions.ToString(LocalScID) + ".ybhtm");
			if (cPC.PrintSceneToFile(cProject, text, LocalScID))
			{
				clsShared.cFile.RunFile(text);
			}
			else
			{
				clsShared.cLang.TransMsgBox("There was an error writing your scene to disk. Make sure you close any previous copies first.");
			}
		}

		private void TimerBackup_Tick(object eventSender, EventArgs eventArgs)
		{
			//Discarded unreachable code: IL_0083, IL_009a, IL_00a5, IL_00b5, IL_00fb, IL_00fd, IL_0111, IL_0133
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				StopBackupTimer();
				num2 = 3;
				StopWCTimer();
				num2 = 4;
				if (Operators.CompareString(txtMain.Text.Trim(), "", TextCompare: false) != 0)
				{
					num2 = 5;
					AutoBackup(ForceIt: false);
				}
				num2 = 6;
				if (Dirty)
				{
					num2 = 7;
					clsScene cScene = cProject.get_SceneByID(LocalScID);
					FormToData(ref cScene);
				}
				num2 = 8;
				if (!EditorDone)
				{
					num2 = 9;
					StartBackupTimer();
					num2 = 10;
					StartWCTimer();
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0131: Could not find block for branch target IL_00fd*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void TimerExit_Tick(object eventSender, EventArgs eventArgs)
		{
			TimerExit.Stop();
			ExitForm();
		}

		private void txtDesc_LinkClicked(object sender, LinkClickedEventArgs e)
		{
			if (FullScreenEditorWithMarginsToolStripMenuItem.Checked | FullScreenEditorToolStripMenu.Checked)
			{
				base.TopMost = false;
			}
			clsShared.cWWW.WebSiteVisit(e.LinkText);
		}

		private void txtDesc_TextChanged(object eventSender, EventArgs eventArgs)
		{
			Dirty = true;
		}

		private void ShowSceneWordCount()
		{
			//Discarded unreachable code: IL_0160, IL_0177, IL_0182, IL_0192, IL_01ec, IL_01ee, IL_0202, IL_0224
			int num = default(int);
			int num5 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				int belongsToChID = cProject.get_SceneByID(LocalScID).BelongsToChID;
				num2 = 3;
				if (txtMain.Text.Length != WordCountTextlength)
				{
					num2 = 4;
					WordCountTextlength = txtMain.Text.Length;
					num2 = 5;
					int num3 = clsShared.cText.Wordcount(txtMain.Text, ExcludeComments: true);
					num2 = 6;
                    	tssSceneWordCount.Text = "Scene: " + Conversions.ToString(num3) + " words";
                   tssSceneWordCount.ToolTipText = $"场景{O.Counter.统计文本字词(txtMain.Text).ToString()}";
                 
					num2 = 7;
					tssToday.Text = "Total today: " + Conversions.ToString(cProject.LatestWCDiff(WithUnused: false));
					num2 = 8;
					clsChapter clsChapter = cProject.get_ChapterByID(belongsToChID);
					num2 = 9;
					int sceneCount = clsChapter.SceneCount;
					for (int i = 1; i <= sceneCount; i++)
					{
						num2 = 10;
						int num4 = clsChapter.get_SceneIDByIndex(i);
						num2 = 11;
						if (num4 != LocalScID)
						{
							num2 = 12;
							if (!cProject.get_SceneByID(num4).Unused)
							{
								num2 = 13;
								num3 += cProject.get_SceneByID(num4).Wordcount;
							}
						}
						num2 = 14;
					}
					num2 = 15;
					tssChaptername.Text = clsChapter.Title + ": " + Conversions.ToString(num3) + " words";
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num5 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0222: Could not find block for branch target IL_01ee*/;
			}
			if (num5 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void SetBackcolour()
		{
			txtMain.BackColor = BGColour;
			SetMarginBackcolor();
		}

		private void txtMain_Click(object sender, EventArgs e)
		{
			CapPrePreChar = "";
			CapPPChar = "";
		}

		private void txtMain_KeyPress(object sender, KeyPressEventArgs e)
		{
			if (CapitaliseFirst)
			{
				if (((Operators.CompareString(CapPrePreChar, ".", TextCompare: false) == 0) & (Operators.CompareString(CapPreChar, " ", TextCompare: false) == 0)) | (txtMain.TextLength == 0) | (txtMain.SelectionStart == 0) | (Operators.CompareString(CapPreChar, "\r", TextCompare: false) == 0))
				{
					string text = Conversions.ToString(e.KeyChar);
					text = text.ToUpper();
					e.KeyChar = Conversions.ToChar(text);
				}
				CapPrePreChar = CapPreChar;
				CapPreChar = Conversions.ToString(e.KeyChar);
			}
			if (CapitaliseI)
			{
				if (((Operators.CompareString(CapPPChar, " ", TextCompare: false) == 0) & (Operators.CompareString(CapPChar, "i", TextCompare: false) == 0)) && Operators.CompareString(Conversions.ToString(e.KeyChar), " ", TextCompare: false) == 0)
				{
					txtMain.Select(txtMain.SelectionStart - 1, 1);
					txtMain.SelectedText = "I";
				}
				CapPPChar = CapPChar;
				CapPChar = Conversions.ToString(e.KeyChar);
			}
		}

		private void txtMain_TextChanged(object eventSender, EventArgs eventArgs)
		{
			if (!SuppressSnapshot)
			{
				StoreSnap(Force: false);
			}
			ResetWCTimer();
			Dirty = true;
		}

		private void txtMain_DoubleClick(object eventSender, EventArgs eventArgs)
		{
			if (FullScreenEditorWithMarginsToolStripMenuItem.Checked | FullScreenEditorToolStripMenu.Checked)
			{
				base.TopMost = false;
			}
			string StringToClean = txtMain.SelectedText.Trim();
			modSJ.cSpell.CleanPunctuation(ref StringToClean);
			StringToClean = StringToClean.Trim();
			if (mnuMarkKnownItems.Checked && Operators.CompareString(StringToClean, "", TextCompare: false) != 0)
			{
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = cProject.Items.GetEnumerator();
					while (enumerator.MoveNext())
					{
						clsItem clsItem = (clsItem)enumerator.Current;
						bool num = Operators.CompareString(clsItem.Title, StringToClean, TextCompare: false) == 0;
						clsProject clsProject = cProject;
						string[] AKAArray = clsItem.AKAArray;
						if (num | clsProject.AKAContains(ref AKAArray, StringToClean))
						{
							modEditItem.EditItem(ref cProject, clsItem.ID);
							return;
						}
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
			}
			if (mnuMarkKnownLocations.Checked && Operators.CompareString(StringToClean, "", TextCompare: false) != 0)
			{
				IEnumerator enumerator2 = default(IEnumerator);
				try
				{
					enumerator2 = cProject.Locations.GetEnumerator();
					while (enumerator2.MoveNext())
					{
						clsLocation clsLocation = (clsLocation)enumerator2.Current;
						bool num2 = Operators.CompareString(clsLocation.Title, StringToClean, TextCompare: false) == 0;
						clsProject clsProject2 = cProject;
						string[] AKAArray = clsLocation.AKAArray;
						if (num2 | clsProject2.AKAContains(ref AKAArray, StringToClean))
						{
							modEditLocation.EditLocation(ref cProject, clsLocation.ID);
							return;
						}
					}
				}
				finally
				{
					if (enumerator2 is IDisposable)
					{
						(enumerator2 as IDisposable).Dispose();
					}
				}
			}
			StringToClean = StringToClean.Replace("'s", "");
			if (mnuMarkKnownChar.Checked && Operators.CompareString(StringToClean, "", TextCompare: false) != 0)
			{
				IEnumerator enumerator3 = default(IEnumerator);
				try
				{
					enumerator3 = cProject.Chars.GetEnumerator();
					while (enumerator3.MoveNext())
					{
						clsCharacter clsCharacter = (clsCharacter)enumerator3.Current;
						bool num3 = (Operators.CompareString(clsCharacter.Title, StringToClean, TextCompare: false) == 0) | (Operators.CompareString(clsCharacter.FullName, StringToClean, TextCompare: false) == 0);
						clsProject clsProject3 = cProject;
						string[] AKAArray = clsCharacter.AKAArray;
						if (num3 | clsProject3.AKAContains(ref AKAArray, StringToClean))
						{
							modEditChar.EditChar(ref cProject, clsCharacter.ID);
							return;
						}
					}
				}
				finally
				{
					if (enumerator3 is IDisposable)
					{
						(enumerator3 as IDisposable).Dispose();
					}
				}
			}
			if (FullScreenEditorWithMarginsToolStripMenuItem.Checked | FullScreenEditorToolStripMenu.Checked)
			{
				base.TopMost = true;
			}
		}

		private void txtMain_KeyDown(object eventSender, KeyEventArgs eventArgs)
		{
			if (((0 - ((!UseRightControl) ? 1 : 0)) & (int)(eventArgs.KeyData & Keys.RControlKey)) == 0)
			{
				try
				{
					if (eventArgs.Control)
					{
						if (eventArgs.KeyCode == Keys.B)
						{
							eventArgs.SuppressKeyPress = true;
							MarkSelectionBold();
						}
						else if (eventArgs.KeyCode == Keys.I)
						{
							eventArgs.SuppressKeyPress = true;
							MarkSelectionItalic();
						}
						else if (eventArgs.KeyCode == Keys.U)
						{
							eventArgs.SuppressKeyPress = true;
							MarkSelectionUnderline();
						}
						else if (eventArgs.KeyCode == Keys.F)
						{
							eventArgs.SuppressKeyPress = true;
							ShowFind(HideReplace: true);
						}
						else if (eventArgs.KeyCode == Keys.H)
						{
							eventArgs.SuppressKeyPress = true;
							ShowFind(HideReplace: false);
						}
						else if (eventArgs.KeyCode == Keys.P)
						{
							eventArgs.SuppressKeyPress = true;
							ClearSelectionFormatting();
						}
					}
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
				try
				{
					if (TypewriterSounds && (!eventArgs.Control & !eventArgs.Alt) && !(eventArgs.Shift & (eventArgs.KeyCode == Keys.ShiftKey)))
					{
						Keys keyCode = eventArgs.KeyCode;
						if (keyCode != Keys.Next && keyCode != Keys.Prior && keyCode != Keys.Up && keyCode != Keys.Down && keyCode != Keys.Left && keyCode != Keys.Right && keyCode != Keys.Insert && (keyCode < Keys.F1 || keyCode > Keys.F12))
						{
							switch (keyCode)
							{
							case Keys.Pause:
							case Keys.Escape:
							case Keys.End:
							case Keys.Home:
							case Keys.Snapshot:
							case Keys.LWin:
							case Keys.RWin:
							case Keys.NumLock:
								break;
							case Keys.Return:
								clsShared.cSounds.PlayWavData(Resources.Shift);
								break;
							default:
								clsShared.cSounds.PlayWavData(Resources.Click2);
								break;
							}
						}
					}
				}
				catch (Exception ex3)
				{
					ProjectData.SetProjectError(ex3);
					Exception ex4 = ex3;
					clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void txtMain_KeyUp(object eventSender, KeyEventArgs eventArgs)
		{
			if (((0 - ((!UseRightControl) ? 1 : 0)) & (int)(eventArgs.KeyData & Keys.RControlKey)) != 0 || ((0 - ((!UseRightControl) ? 1 : 0)) & (int)(eventArgs.KeyData & Keys.RMenu)) != 0 || eventArgs.Alt)
			{
				return;
			}
			if (eventArgs.Control)
			{
				switch (eventArgs.KeyCode)
				{
				case Keys.X:
					break;
				case Keys.Z:
					eventArgs.SuppressKeyPress = true;
					Undo();
					break;
				case Keys.Y:
					eventArgs.SuppressKeyPress = true;
					Redo();
					break;
				case Keys.W:
					eventArgs.SuppressKeyPress = true;
					txtMain.Find(" ,;:.?!", RichTextBoxFinds.None);
					break;
				}
			}
			else
			{
				if (!(!eventArgs.Control & !eventArgs.Alt))
				{
					return;
				}
				Keys keyCode = eventArgs.KeyCode;
				if ((keyCode >= Keys.A && keyCode <= Keys.Z) || (keyCode >= Keys.D0 && keyCode <= Keys.D9))
				{
					KeyPressCounter++;
				}
				else
				{
					switch (keyCode)
					{
					case Keys.Delete:
						KeyPressCounter++;
						break;
					case Keys.Back:
						KeyPressCounter++;
						break;
					case Keys.Space:
						KeyPressCounter++;
						break;
					}
				}
				if (KeyPressCounter >= 20)
				{
					KeyPressCounter = 0;
					StoreSnap(Force: true);
				}
			}
		}

		private void txtNotes_LinkClicked(object sender, LinkClickedEventArgs e)
		{
			if (FullScreenEditorWithMarginsToolStripMenuItem.Checked | FullScreenEditorToolStripMenu.Checked)
			{
				base.TopMost = false;
			}
			clsShared.cWWW.WebSiteVisit(e.LinkText);
		}

		private void txtNotes_TextChanged(object eventSender, EventArgs eventArgs)
		{
			Dirty = true;
		}

		private void txtOutcome_KeyDown(object eventSender, KeyEventArgs eventArgs)
		{
			Dirty = true;
		}

		private void txtTitle_TextChanged(object eventSender, EventArgs eventArgs)
		{
			try
			{
				if (!SuppressComboChange)
				{
					clsComboItem clsComboItem = (clsComboItem)cmbScene.SelectedItem;
					if (clsComboItem != null)
					{
						clsComboItem.Title = txtTitle.Text;
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		private void txtTitle_KeyDown(object eventSender, KeyEventArgs eventArgs)
		{
			Dirty = true;
		}

		private void Find_DoFind(string SearchString, bool Sensitive)
		{
			FindNext(SearchString, Sensitive);
		}

		private void FindPrev(string SearchString, bool Sensitive)
		{
			//Discarded unreachable code: IL_011f, IL_0136, IL_0141, IL_0151, IL_01cb, IL_01cd, IL_01e1, IL_0203
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				CurrentSearchString = SearchString;
				num2 = 3;
				CurrentSensitive = Sensitive;
				num2 = 4;
				int selectionStart = txtMain.SelectionStart;
				num2 = 5;
				bool flag = default(bool);
				if (selectionStart == Strings.Len(txtMain.Text))
				{
					num2 = 6;
					flag = true;
				}
				num2 = 7;
				if (selectionStart > 1)
				{
					num2 = 8;
					if (Sensitive)
					{
						num2 = 9;
						selectionStart = Strings.InStrRev(txtMain.Text, SearchString, selectionStart - 1);
					}
					else
					{
						num2 = 11;
						selectionStart = Strings.InStrRev(Strings.LCase(txtMain.Text), Strings.LCase(SearchString), selectionStart - 1);
					}
				}
				else
				{
					num2 = 13;
					selectionStart = 0;
				}
				num2 = 14;
				if (selectionStart > 0)
				{
					num2 = 15;
					txtMain.Select(selectionStart - 1, Strings.Len(SearchString));
				}
				else
				{
					num2 = 17;
					if (selectionStart == 0 && flag)
					{
						num2 = 18;
						clsShared.cLang.TransMsgBox("No more matches");
					}
					else
					{
						num2 = 20;
						if (clsShared.cLang.TransMsgBox("Search string not found. Start at end?", MsgBoxStyle.YesNo) == MsgBoxResult.Yes)
						{
							num2 = 21;
							txtMain.SelectionStart = Strings.Len(txtMain.Text);
							num2 = 22;
							FindPrev(SearchString, Sensitive);
						}
					}
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0201: Could not find block for branch target IL_01cd*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void FindNext(string SearchString, bool Sensitive)
		{
			//Discarded unreachable code: IL_00e4, IL_00fb, IL_0106, IL_0116, IL_0180, IL_0182, IL_0196, IL_01b8
			int num = default(int);
			int num5 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				int num3 = txtMain.SelectionStart + 1;
				num2 = 3;
				CurrentSearchString = SearchString;
				num2 = 4;
				CurrentSensitive = Sensitive;
				num2 = 5;
				int num4 = num3;
				num2 = 6;
				if (Sensitive)
				{
					num2 = 7;
					num4 = Strings.InStr(num4 + 1, txtMain.Text, SearchString);
				}
				else
				{
					num2 = 9;
					num4 = Strings.InStr(num4 + 1, Strings.LCase(txtMain.Text), Strings.LCase(SearchString));
				}
				num2 = 10;
				if (num4 > 0)
				{
					num2 = 11;
					txtMain.Select(num4 - 1, Strings.Len(SearchString));
				}
				else
				{
					num2 = 13;
					if (num3 > 2)
					{
						num2 = 14;
						if (clsShared.cLang.TransMsgBox("Search string not found. Start at top?", MsgBoxStyle.YesNo) == MsgBoxResult.Yes)
						{
							num2 = 15;
							txtMain.SelectionStart = 1;
							num2 = 16;
							Find_DoFind(SearchString, Sensitive);
						}
					}
					else
					{
						num2 = 18;
						clsShared.cLang.TransMsgBox("No more matches");
					}
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num5 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_01b6: Could not find block for branch target IL_0182*/;
			}
			if (num5 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void Find_DoReplace(string SearchString, string ReplaceWith, bool Sensitive)
		{
			//Discarded unreachable code: IL_012a, IL_0141, IL_014c, IL_015c, IL_01de, IL_01e0, IL_01f4, IL_0216
			int num = default(int);
			int num5 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (Sensitive)
				{
					num2 = 3;
					if (Operators.CompareString(txtMain.SelectedText, SearchString, TextCompare: false) != 0)
					{
						goto IL_0068;
					}
					num2 = 4;
					txtMain.SelectedText = ReplaceWith;
				}
				else
				{
					num2 = 7;
					if (Operators.CompareString(txtMain.SelectedText.ToLower(), SearchString.ToLower(), TextCompare: false) != 0)
					{
						goto IL_0068;
					}
					num2 = 8;
					txtMain.SelectedText = ReplaceWith;
				}
				goto end_IL_0000;
				IL_0068:
				num2 = 10;
				int num3 = txtMain.SelectionStart + 1;
				num2 = 11;
				int num4 = num3;
				num2 = 12;
				if (Sensitive)
				{
					num2 = 13;
					num3 = Strings.InStr(num3 + 1, txtMain.Text, SearchString);
				}
				else
				{
					num2 = 15;
					num3 = Strings.InStr(num3 + 1, Strings.LCase(txtMain.Text), Strings.LCase(SearchString));
				}
				num2 = 16;
				if (num3 > 0)
				{
					num2 = 17;
					ReplaceAt(num3 - 1, SearchString, ReplaceWith);
				}
				else
				{
					num2 = 19;
					if (num4 > 2)
					{
						num2 = 20;
						if (clsShared.cLang.TransMsgBox("Search string not found. Start at top?", MsgBoxStyle.YesNo) == MsgBoxResult.Yes)
						{
							num2 = 21;
							txtMain.SelectionStart = 1;
							num2 = 22;
							Find_DoReplace(SearchString, ReplaceWith, Sensitive);
						}
					}
					else
					{
						num2 = 24;
						clsShared.cLang.TransMsgBox("No more matches");
					}
				}
				end_IL_0000:;
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num5 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0214: Could not find block for branch target IL_01e0*/;
			}
			if (num5 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void Find_DoReplaceAll(string SearchString, string ReplaceWith, bool Sensitive)
		{
			//Discarded unreachable code: IL_010f, IL_0126, IL_0131, IL_0141, IL_01cb, IL_01cd, IL_01e1, IL_0203
			int num = default(int);
			int num7 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (!(Sensitive & (Operators.CompareString(SearchString, ReplaceWith, TextCompare: false) == 0)))
				{
					num2 = 5;
					if (!(!Sensitive & clsShared.cText.StringsEqual(SearchString, ReplaceWith)))
					{
						num2 = 7;
						int num3;
						if (Sensitive)
						{
							num2 = 8;
							num3 = Strings.InStr(1, txtMain.Text, SearchString);
						}
						else
						{
							num2 = 10;
							num3 = Strings.InStr(1, txtMain.Text, SearchString, CompareMethod.Text);
						}
						num2 = 11;
						if (num3 > 0)
						{
							num2 = 12;
							int num4 = Strings.Len(ReplaceWith);
							int num6;
							do
							{
								num2 = 14;
								if (num3 <= 0)
								{
									break;
								}
								num2 = 15;
								ReplaceAt(num3 - 1, SearchString, ReplaceWith);
								num2 = 16;
								int num5 = Strings.Len(txtMain.Text);
								num2 = 17;
								if (num3 + num4 > num5)
								{
									break;
								}
								num2 = 19;
								num6 = num3;
								num2 = 20;
								if (Sensitive)
								{
									num2 = 21;
									num3 = Strings.InStr(num3 + num4, txtMain.Text, SearchString);
								}
								else
								{
									num2 = 23;
									num3 = Strings.InStr(num3 + num4, txtMain.Text, SearchString, CompareMethod.Text);
								}
								num2 = 24;
							}
							while (num3 > num6);
							num2 = 27;
							txtMain.Select(0, 0);
						}
					}
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num7 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0201: Could not find block for branch target IL_01cd*/;
			}
			if (num7 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void ReplaceAt(int CursorLoc, string SearchString, string ReplaceWith)
		{
			try
			{
				txtMain.Select(CursorLoc, Strings.Len(SearchString));
				txtMain.SelectedText = ReplaceWith;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ExitForm()
		{
			//Discarded unreachable code: IL_0062, IL_0079, IL_0084, IL_0094, IL_00d6, IL_00d8, IL_00ec, IL_010e
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				EditorDone = true;
				num2 = 3;
				TimerFillFontCombo.Stop();
				num2 = 4;
				StopWCTimer();
				num2 = 5;
				StopBackupTimer();
				num2 = 6;
				RemoveAllHandlers();
				num2 = 7;
				if (Talking)
				{
					num2 = 8;
					StopTalking();
				}
				num2 = 9;
				FinishedEvent?.Invoke(LocalScID);
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_010c: Could not find block for branch target IL_00d8*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void AutoBackup(bool ForceIt)
		{
			//Discarded unreachable code: IL_03f5, IL_040c, IL_0417, IL_0427, IL_04fd, IL_04ff, IL_0513, IL_0535
			int num2 = default(int);
			int num3 = default(int);
			try
			{
				int num = 1;
				string text = "";
				num = 2;
				string text2 = "";
				ProjectData.ClearProjectError();
				num2 = 2;
				num = 4;
				string rtf;
				if (Operators.CompareString(txtMain.Text.Trim(), "", TextCompare: false) != 0)
				{
					num = 6;
					rtf = txtMain.Rtf;
					num = 7;
					if (ForceIt)
					{
						goto IL_0063;
					}
					num = 8;
					if (Operators.CompareString(PreviousBackupContent, rtf, TextCompare: false) != 0)
					{
						goto IL_0063;
					}
				}
				goto end_IL_0000;
				IL_0063:
				num = 10;
				string text3 = txtTitle.Text;
				num = 11;
				if (Operators.CompareString(text3, "", TextCompare: false) != 0)
				{
					num = 12;
					text3 = clsShared.cFile.StripBadFileChar(text3).Trim();
					num = 13;
					if (text3.Length > 50)
					{
						num = 14;
						text3 = text3.Substring(0, 50);
					}
				}
				num = 15;
				clsZip clsZip = new clsZip();
				num = 16;
				string text4 = Strings.Format(DateAndTime.Now, "HH.mm.ss");
				num = 17;
				string text5 = "Sc" + Conversions.ToString(LocalScID);
				num = 18;
				cProject.MakeAutoBackupFolder();
				num = 19;
				text = cProject.TodaysBackupFolder();
				num = 20;
				clsShared.cFile.MkMissingDir(text);
				num = 21;
				bool flag = default(bool);
				if (clsShared.cSettings.sGet("AutoBackupSequential", DefaultIfUnknown: true))
				{
					num = 22;
					SequentialBackupTimer++;
					num = 23;
					if (((double)SequentialBackupTimer >= clsShared.cSettings.sGet("SequentialFrequency", 5)) | FirstBackup)
					{
						num = 24;
						SequentialBackupTimer = 0;
						num = 25;
						if (cProject.V6File)
						{
							num = 26;
							text2 = Path.Combine(text, clsShared.cFile.FileOnly(clsShared.cFile.FileWithoutExt(cProject.FileWithPath)));
							num = 27;
							text2 = text2 + " " + clsShared.cFile.FileWithoutExt(clsShared.cFile.FileOnly(cProject.get_SceneByID(LocalScID).RTFFilename));
							num = 28;
							text2 = text2 + " " + text4 + " " + text3 + ".rtf";
						}
						else
						{
							num = 30;
							text2 = Path.Combine(text, text5 + " " + text4 + " " + text3 + " " + clsShared.cFile.FileOnly(cProject.get_SceneByID(LocalScID).RTFFilename));
						}
						num = 31;
						if (!clsShared.cFile.WriteTextFile(text2, rtf))
						{
							num = 32;
							text2 = Strings.Replace(text2, " " + text3, "");
							num = 33;
							clsShared.cFile.WriteTextFile(text2, rtf);
						}
						num = 34;
						flag = true;
						num = 35;
						FirstBackup = false;
					}
				}
				else
				{
					num = 37;
					text2 = Path.Combine(text, text5 + " " + text3 + " " + clsShared.cFile.FileOnly(cProject.get_SceneByID(LocalScID).RTFFilename));
					num = 38;
					if (!clsShared.cFile.WriteTextFile(text2, rtf))
					{
						num = 39;
						text2 = Strings.Replace(text2, " " + text3, "");
						num = 40;
						clsShared.cFile.WriteTextFile(text2, rtf);
					}
					num = 41;
					flag = true;
				}
				num = 42;
				if (flag)
				{
					num = 43;
					tssStatus.Text = "Last Autosave: " + Strings.Format(DateAndTime.Now, "HH:mm:ss");
					num = 44;
					if (clsZip.AddFileToZip(Path.Combine(text, "SequentialSceneBackups.zip"), text2))
					{
						num = 45;
						clsShared.cFile.EraseFile(text2);
					}
				}
				num = 46;
				PreviousBackupContent = rtf;
				end_IL_0000:;
			}
			catch (Exception obj) when ((obj is Exception && num2 != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0533: Could not find block for branch target IL_04ff*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private string NextReminder()
		{
			string result = "";
			_0024STATIC_0024NextReminder_0024200E_0024CurrentReminder++;
			if (_0024STATIC_0024NextReminder_0024200E_0024CurrentReminder > 5)
			{
				_0024STATIC_0024NextReminder_0024200E_0024CurrentReminder = 1;
			}
			switch (_0024STATIC_0024NextReminder_0024200E_0024CurrentReminder)
			{
			case 1:
				result = "Enclose comments in your scenes between /* these programming-style markers */ and they won't be included in the wordcount.";
				break;
			case 2:
				result = "Sometimes it's quicker to rewrite a short scene from scratch than to keep editing it.";
				break;
			case 3:
				result = "Use all five senses: taste, touch, smell, hearing and sight.";
				break;
			case 4:
				result = "Break long scenes into smaller pieces to make rewriting easier. You can join them up again later.";
				break;
			case 5:
				result = "Take a 5-10 minute break every hour. Walk, exercise, make a drink.";
				break;
			}
			return result;
		}

		public void ChooseBGColour()
		{
			try
			{
				ColorDialog1.Color = BGColour;
				ColorDialog1.FullOpen = true;
				ColorDialog1.SolidColorOnly = true;
				if (ColorDialog1.ShowDialog() == DialogResult.OK)
				{
					BGColour = ColorDialog1.Color;
					SetBackcolour();
					clsShared.cSettings.sSet("EditorBG5", BGColour);
					SpellCheck(Force: false);
					SettingsChangedEvent?.Invoke(LocalScID);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ChooseFGColour()
		{
			try
			{
				ColorDialog1.Color = FGColour;
				ColorDialog1.FullOpen = true;
				ColorDialog1.SolidColorOnly = true;
				ColorDialog1.ShowDialog();
				if (ColorDialog1.ShowDialog() == DialogResult.OK)
				{
					FGColour = ColorDialog1.Color;
					SetForeColour(FGColour);
					clsShared.cSettings.sSet("EditorFG5", FGColour);
					SpellCheck(Force: false);
					SettingsChangedEvent?.Invoke(LocalScID);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void SpellCheck(bool Force)
		{
			try
			{
				SuppressSnapshot = true;
				if (!Force && !mnuSpellingOn.Checked)
				{
					HighlightCharLocItemsIfNeeded();
				}
				else if (!AlreadySpellChecking)
				{
					AlreadySpellChecking = true;
					TBHidden.Rtf = txtMain.Rtf;
					ResetFontColour(ref TBHidden);
					modSJ.cSpell.SpellCheckRichText(ref TBHidden, FGColour, Spellingcolour);
					txtMain.SuspendLayout();
					CopyTextBoxToMain(ref TBHidden);
					HighlightCharLocItemsIfNeeded();
					txtMain.ResumeLayout();
					clsShared.cLog.AddAction("Spell check complete");
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			finally
			{
				SuppressSnapshot = false;
				AlreadySpellChecking = false;
			}
		}

		private void StoreSnap(bool Force)
		{
			txtMain.ClearUndo();
			if (iUndo > 0)
			{
				while (colUndo.Count > iUndo)
				{
					colUndo.Remove(colUndo.Count);
				}
			}
			if (colUndo.Count > 50)
			{
				colUndo.Remove(1);
			}
			if (Force | (colUndo.Count == 0))
			{
				colUndo.Add(txtMain.Rtf);
			}
			else if (Math.Abs(txtMain.Rtf.Length - Conversions.ToString(colUndo[colUndo.Count]).Length) > 25)
			{
				colUndo.Add(txtMain.Rtf);
			}
			iUndo = colUndo.Count;
		}

		private void Undo()
		{
			//Discarded unreachable code: IL_0077, IL_00ad, IL_00af, IL_00bf, IL_00e1
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 1;
				int num2 = 2;
				SuppressSnapshot = true;
				num2 = 3;
				StorePos();
				num2 = 4;
				if (iUndo >= 1)
				{
					num2 = 5;
					txtMain.Rtf = Conversions.ToString(colUndo[iUndo]);
					num2 = 6;
					txtMain.ClearUndo();
					num2 = 7;
					iUndo--;
				}
				num2 = 8;
				RestorePos();
				num2 = 9;
				SuppressSnapshot = false;
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_00df: Could not find block for branch target IL_00af*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void Redo()
		{
			//Discarded unreachable code: IL_0083, IL_00b9, IL_00bb, IL_00cb, IL_00ed
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 1;
				int num2 = 2;
				SuppressSnapshot = true;
				num2 = 3;
				StorePos();
				num2 = 4;
				if (iUndo < colUndo.Count)
				{
					num2 = 5;
					txtMain.Rtf = Conversions.ToString(colUndo[iUndo + 1]);
					num2 = 6;
					txtMain.ClearUndo();
					num2 = 7;
					iUndo++;
				}
				num2 = 8;
				RestorePos();
				num2 = 9;
				SuppressSnapshot = false;
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_00eb: Could not find block for branch target IL_00bb*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void ClearUndo()
		{
			colUndo.Clear();
			iUndo = 0;
			txtMain.ClearUndo();
		}

		private void HighlightCharacters(ref RichTextBox RTF, Color MarkingColour)
		{
			string text = RTF.Text;
			try
			{
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = cProject.Chars.GetEnumerator();
					while (enumerator.MoveNext())
					{
						clsCharacter clsCharacter = (clsCharacter)enumerator.Current;
						if (clsCharacter.Title.Length > 2)
						{
							MarkString(ref RTF, text, clsCharacter.Title, MarkingColour);
							MarkString(ref RTF, text, clsCharacter.FullName, MarkingColour);
							string[] aKAArray = clsCharacter.AKAArray;
							foreach (string text2 in aKAArray)
							{
								MarkString(ref RTF, text, text2.Trim(), MarkingColour);
							}
						}
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void MarkString(ref RichTextBox RTFBox, string strPlain, string strString, Color MarkingColour)
		{
			if (RTFBox.TextLength != 0 && strPlain.Contains(strString))
			{
				int num = 0;
				strString = strString.Trim();
				if (Operators.CompareString(strString, "", TextCompare: false) != 0)
				{
					try
					{
						do
						{
							num = RTFBox.Find(strString, num, RichTextBoxFinds.MatchCase);
							if (num >= 0)
							{
								RTFBox.SelectionStart = num;
								RTFBox.SelectionColor = MarkingColour;
								num++;
							}
						}
						while (num >= 0);
					}
					catch (Exception ex)
					{
						ProjectData.SetProjectError(ex);
						Exception ex2 = ex;
						clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
						ProjectData.ClearProjectError();
					}
				}
			}
		}

		private void HighlightLocations(ref RichTextBox RTF, Color MarkingColour)
		{
			string text = RTF.Text;
			try
			{
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = cProject.Locations.GetEnumerator();
					while (enumerator.MoveNext())
					{
						clsLocation clsLocation = (clsLocation)enumerator.Current;
						if (clsLocation.Title.Length > 2)
						{
							MarkString(ref RTF, text, clsLocation.Title, MarkingColour);
						}
						string[] aKAArray = clsLocation.AKAArray;
						foreach (string text2 in aKAArray)
						{
							if (text2.Length > 1)
							{
								MarkString(ref RTF, text, text2.Trim(), MarkingColour);
							}
						}
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void HighlightItems(ref RichTextBox RTF, Color MarkingColour)
		{
			string text = RTF.Text;
			try
			{
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = cProject.Items.GetEnumerator();
					while (enumerator.MoveNext())
					{
						clsItem clsItem = (clsItem)enumerator.Current;
						if (Strings.Len(clsItem.Title) > 2)
						{
							MarkString(ref RTF, text, clsItem.Title, MarkingColour);
						}
						string[] aKAArray = clsItem.AKAArray;
						foreach (string text2 in aKAArray)
						{
							MarkString(ref RTF, text, text2.Trim(), MarkingColour);
						}
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void WordLookup(string Url)
		{
			try
			{
				string StringToClean = Strings.Trim(txtMain.SelectedText);
				if (Operators.CompareString(StringToClean, "", TextCompare: false) == 0)
				{
					clsShared.cLang.TransMsgBox("Please select a word");
				}
				else if (Strings.InStr(StringToClean, " ") > 0)
				{
					clsShared.cLang.TransMsgBox("Please select a single word");
				}
				else
				{
					modSJ.cSpell.CleanPunctuation(ref StringToClean);
					StringToClean = Strings.Trim(StringToClean);
					clsShared.cFile.RunFile(Strings.Replace(Url, "@@@", StringToClean));
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void DataToForm(int ScID, bool TextToo)
		{
			clsScene cScene = cProject.get_SceneByID(ScID);
			if (cScene == null)
			{
				clsShared.cLog.ShowMinorError("Scene ID " + Conversions.ToString(ScID) + " not part of this project", MethodBase.GetCurrentMethod());
				return;
			}
			txtTitle.ReadOnly = true;
			clsChapter clsChapter = cProject.get_ChapterByID(cScene.BelongsToChID);
			lblUnusedIndicator.Text = "";
			if (cScene.Unused)
			{
				SetUnusedColours();
				lblUnusedIndicator.Text = "UNUSED SCENE";
			}
			else
			{
				ResetUnusedColours();
			}
			try
			{
				tssChaptername.Text = clsChapter.Title;
				if (clsChapter.Unused | (clsChapter.Type == ChapterTypes.ChapterNotes))
				{
					tssChaptername.Text += " **UNUSED/INFO** ";
					lblUnusedIndicator.Text = "Scene within UNUSED/INFO Chapter";
					SetUnusedColours();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				if (cProject.get_ChapterByID(cScene.BelongsToChID).SceneIndex(ScID) == 1)
				{
					chkAppendToPrev.Enabled = false;
					chkAppendToPrev.Checked = false;
				}
				else
				{
					chkAppendToPrev.Enabled = true;
					chkAppendToPrev.Checked = cScene.AppendToPrevious;
				}
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			tssFilename.Text = cScene.RTFFilename;
			WordCountTextlength = -1;
			try
			{
				txtTitle.Text = cScene.Title;
				txtDesc.Text = cScene.DescText;
				txtConflict.Text = cScene.Conflict;
				txtGoal.Text = cScene.Goal;
				txtOutcome.Text = cScene.Outcome;
				txtNotes.Text = cScene.Notes;
				if (Operators.CompareString(Strings.Trim(txtNotes.Text), "", TextCompare: false) == 0)
				{
					TabNotes.ImageKey = "";
				}
				else
				{
					TabNotes.ImageKey = "yw_Note_16_ico.ico";
				}
				if (Operators.CompareString(txtGoal.Text.Trim() + txtOutcome.Text.Trim() + txtConflict.Text.Trim(), "", TextCompare: false) == 0)
				{
					tabGoals.ImageKey = "";
				}
				else
				{
					tabGoals.ImageKey = "goal";
				}
				try
				{
					txtMain.Focus();
				}
				catch (Exception ex5)
				{
					ProjectData.SetProjectError(ex5);
					Exception ex6 = ex5;
					ProjectData.ClearProjectError();
				}
			}
			catch (Exception ex7)
			{
				ProjectData.SetProjectError(ex7);
				Exception ex8 = ex7;
				clsShared.cLog.AddAction(ex8, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			FillAllCombos(ref cScene);
			SuppressComboChange = true;
			try
			{
				cmbFont.Text = clsShared.cSettings.sGet("EditorFontName", "Segoe UI");
				cmbFontSize.Text = Conversions.ToString(clsShared.cSettings.sGet("EditorFontSize", 10f));
				if (Operators.CompareString(cmbFontSize.Text, "", TextCompare: false) == 0)
				{
					cmbFontSize.Text = Conversions.ToString(10f);
				}
			}
			catch (Exception ex9)
			{
				ProjectData.SetProjectError(ex9);
				Exception ex10 = ex9;
				clsShared.cLog.AddAction(ex10, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				optConditions.Checked = cScene.ExportCondSpecific;
				if (!optConditions.Checked)
				{
					optAlways.Checked = true;
				}
				chkWhenHTML.Checked = cScene.ExportWhenHTML;
				chkWhenText.Checked = cScene.ExportWhenText;
				chkWhenRTF.Checked = cScene.ExportWhenRTF;
				chkWhenRTFChapters.Checked = cScene.ExportWhenRTFChapters;
				chkWhenLatex.Checked = cScene.ExportWhenLaTeX;
			}
			catch (Exception ex11)
			{
				ProjectData.SetProjectError(ex11);
				Exception ex12 = ex11;
				clsShared.cLog.AddAction(ex12, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			if (TextToo)
			{
				SuppressSnapshot = true;
				txtMain.Text = "";
				try
				{
					txtMain.Focus();
				}
				catch (Exception ex13)
				{
					ProjectData.SetProjectError(ex13);
					Exception ex14 = ex13;
					ProjectData.ClearProjectError();
				}
				RichTextBox RTFBox = txtMain;
				SetIndent(ref RTFBox);
				txtMain = RTFBox;
				try
				{
					txtMain.Font = new Font(clsShared.cSettings.sGet("EditorFontName", "Segoe UI"), clsShared.cSettings.sGet("EditorFontSize", 10f));
				}
				catch (Exception ex15)
				{
					ProjectData.SetProjectError(ex15);
					Exception ex16 = ex15;
					clsShared.cLog.AddAction(ex16, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
				try
				{
					txtMain.Rtf = cScene.TextRTF;
				}
				catch (Exception ex17)
				{
					ProjectData.SetProjectError(ex17);
					Exception ex18 = ex17;
					txtMain.Text = cScene.TextRTF;
					ProjectData.ClearProjectError();
				}
				ClearUndo();
				try
				{
					txtMain.Rtf = CleanRTF();
				}
				catch (Exception ex19)
				{
					ProjectData.SetProjectError(ex19);
					Exception ex20 = ex19;
					txtMain.Text = TBHidden.Text;
					ProjectData.ClearProjectError();
				}
				txtMain.ClearUndo();
				SuppressSnapshot = false;
				try
				{
					txtMain.Focus();
				}
				catch (Exception ex21)
				{
					ProjectData.SetProjectError(ex21);
					Exception ex22 = ex21;
					ProjectData.ClearProjectError();
				}
				try
				{
					cmbFont.Text = txtMain.SelectionFont.Name;
					cmbFontSize.Text = Conversions.ToString(txtMain.SelectionFont.Size);
				}
				catch (Exception ex23)
				{
					ProjectData.SetProjectError(ex23);
					Exception ex24 = ex23;
					clsShared.cLog.AddAction(ex24, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
				SetForeColour(FGColour);
			}
			if (cScene.ReactionScene)
			{
				optReaction.Checked = true;
			}
			else
			{
				optAction.Checked = true;
			}
			SetGoalsLabels();
			if (cScene.SubPlot)
			{
				optSubplot.Checked = true;
			}
			else
			{
				optPlot.Checked = true;
			}
			try
			{
				int num = 1;
				do
				{
					cmbFieldVal[num - 1].SelectedIndex = ((clsSceneBase)cScene).get_Field(num) - 1;
					if (cmbFieldVal[num - 1].SelectedIndex == -1)
					{
						cmbFieldVal[num - 1].SelectedIndex = 0;
					}
					num++;
				}
				while (num <= 4);
			}
			catch (Exception ex25)
			{
				ProjectData.SetProjectError(ex25);
				Exception ex26 = ex25;
				clsShared.cLog.AddAction(ex26, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			txtTags.Text = cScene.Tags;
			txtDay.Text = Conversions.ToString(cScene.Day_Renamed);
			cmbHour.SelectedIndex = cScene.Hour_Renamed;
			cmbMinute.SelectedIndex = cScene.Minute_Renamed;
			try
			{
				if (cScene.SpecificDateMode)
				{
					ShowSpecificDateFrame();
					lblSpecificDate.Text = Conversions.ToString(cScene.SpecificDateTime.Date);
					lblSpecificTime.Text = Strings.Format(cScene.SpecificDateTime, "HH:mm");
				}
				else if ((cScene.Day_Renamed == 0) & (cScene.Hour_Renamed == 0) & (cScene.Minute_Renamed == 0))
				{
					ReadDateModeSetting();
				}
				else
				{
					ShowDHMFrame();
				}
			}
			catch (Exception ex27)
			{
				ProjectData.SetProjectError(ex27);
				Exception ex28 = ex27;
				clsShared.cLog.AddAction(ex28, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				txtLastsDays.Text = Conversions.ToString(Interaction.IIf(cScene.LastsDays > 0, cScene.LastsDays, 0));
				cmbLastsHours.SelectedIndex = Conversions.ToInteger(Interaction.IIf(cScene.LastsHours > 0, cScene.LastsHours, 0));
				cmbLastsMinutes.SelectedIndex = Conversions.ToInteger(Interaction.IIf(cScene.LastsMinutes > 0, cScene.LastsMinutes, 0));
			}
			catch (Exception ex29)
			{
				ProjectData.SetProjectError(ex29);
				Exception ex30 = ex29;
				clsShared.cLog.AddAction(ex30, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				txtMain.Focus();
			}
			catch (Exception ex31)
			{
				ProjectData.SetProjectError(ex31);
				Exception ex32 = ex31;
				ProjectData.ClearProjectError();
			}
			ShowSceneWordCount();
			DisplayTabIcons();
			ReadFontBarSetting();
			ReadAllowTabsSetting();
			txtImageFile.Text = cScene.ImageFile;
			if (Operators.CompareString(Strings.Trim(txtImageFile.Text), "", TextCompare: false) == 0)
			{
				tabImage.ImageKey = "";
			}
			else
			{
				tabImage.ImageKey = "yw_Art_16.ico";
			}
			ProjectImageFolder = cProject.ImagesFolder;
			ref clsProject reference = ref cProject;
			string text = txtImageFile.Text;
			PictureBox Picture = Picture1;
			PictureBox Image = Image2;
			TabPage TabPage = tabImage;
			modSubs.DisplayImage(ref reference, text, ref Picture, ref Image, ref TabPage);
			tabImage = TabPage;
			Image2 = Image;
			Picture1 = Picture;
			try
			{
				txtMain.Focus();
			}
			catch (Exception ex33)
			{
				ProjectData.SetProjectError(ex33);
				Exception ex34 = ex33;
				ProjectData.ClearProjectError();
			}
			txtTitle.ReadOnly = false;
			SuppressComboChange = false;
			cDelay.DoEvents();
			Dirty = false;
		}

		private void FormToData(ref clsScene cScene)
		{
			//Discarded unreachable code: IL_0447, IL_045e, IL_0469, IL_0479, IL_058f, IL_0591, IL_05a5, IL_05c7
			int num = default(int);
			int num5 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				StopWCTimer();
				num2 = 3;
				StopBackupTimer();
				num2 = 4;
				int num3 = default(int);
				if (cmbViewpoint.SelectedIndex >= 0)
				{
					num2 = 5;
					clsComboItem clsComboItem = (clsComboItem)cmbViewpoint.SelectedItem;
					num2 = 6;
					num3 = Conversions.ToInteger(clsComboItem.ID);
				}
				else
				{
					num2 = 8;
					clsShared.cLog.AddAction("Viewpoint not set", MethodBase.GetCurrentMethod());
				}
				num2 = 9;
				if (cScene.ContainsCharID(num3))
				{
					num2 = 10;
					if (cScene.ViewPointID != num3)
					{
						num2 = 11;
						cScene.ChangeViewpointByID(num3);
					}
				}
				else
				{
					num2 = 13;
					cScene.SetViewpointByID(num3);
				}
				num2 = 14;
				cScene.Title = txtTitle.Text;
				num2 = 15;
				cScene.DescText = txtDesc.Text;
				num2 = 16;
				cScene.Goal = txtGoal.Text;
				num2 = 17;
				cScene.Conflict = txtConflict.Text;
				num2 = 18;
				cScene.Outcome = txtOutcome.Text;
				num2 = 19;
				cScene.Notes = txtNotes.Text;
				num2 = 20;
				cScene.ExportCondSpecific = optConditions.Checked;
				num2 = 21;
				cScene.ExportWhenHTML = chkWhenHTML.Checked;
				num2 = 22;
				cScene.ExportWhenText = chkWhenText.Checked;
				num2 = 23;
				cScene.ExportWhenRTF = chkWhenRTF.Checked;
				num2 = 24;
				cScene.ExportWhenRTFChapters = chkWhenRTFChapters.Checked;
				num2 = 25;
				cScene.ExportWhenLaTeX = chkWhenLatex.Checked;
				num2 = 26;
				cScene.AppendToPrevious = chkAppendToPrev.Checked;
				num2 = 27;
				if (Operators.CompareString(Strings.Trim(txtNotes.Text), "", TextCompare: false) == 0)
				{
					num2 = 28;
					TabNotes.ImageKey = "";
				}
				else
				{
					num2 = 30;
					TabNotes.ImageKey = "yw_Note_16_ico.ico";
				}
				num2 = 31;
				if (fraDHM.Visible)
				{
					num2 = 32;
					cScene.SpecificDateMode = false;
				}
				else
				{
					num2 = 34;
					if (Information.IsDate(lblSpecificDate.Text))
					{
						num2 = 35;
						if (!Information.IsDate(lblSpecificTime.Text))
						{
							num2 = 36;
							lblSpecificTime.Text = "00:00";
						}
						num2 = 37;
						cScene.SpecificDateMode = true;
						num2 = 38;
						DateTime dateTime = DateAndTime.TimeValue(lblSpecificTime.Text);
						num2 = 39;
						cScene.SpecificDateTime = DateAndTime.DateValue(lblSpecificDate.Text).Add(new TimeSpan(dateTime.Hour, dateTime.Minute, 0));
					}
				}
				num2 = 40;
				cScene.TextRTF = CleanRTF();
				num2 = 41;
				int num4 = 1;
				do
				{
					num2 = 42;
					((clsSceneBase)cScene).set_Field(num4, cmbFieldVal[num4 - 1].SelectedIndex + 1);
					num2 = 43;
					num4++;
				}
				while (num4 <= 4);
				num2 = 44;
				cScene.Status = cmbStatus.SelectedIndex + 1;
				num2 = 45;
				if (optAction.Checked)
				{
					num2 = 46;
					cScene.ReactionScene = false;
				}
				else
				{
					num2 = 48;
					cScene.ReactionScene = true;
				}
				num2 = 49;
				if (optPlot.Checked)
				{
					num2 = 50;
					cScene.SubPlot = false;
				}
				else
				{
					num2 = 52;
					cScene.SubPlot = true;
				}
				num2 = 53;
				cScene.Tags = txtTags.Text;
				num2 = 54;
				cScene.Day_Renamed = (int)Math.Round(Conversion.Val(txtDay.Text));
				num2 = 55;
				cScene.Hour_Renamed = (int)Math.Round(Conversion.Val(cmbHour.Text));
				num2 = 56;
				cScene.Minute_Renamed = (int)Math.Round(Conversion.Val(cmbMinute.Text));
				num2 = 57;
				cScene.LastsDays = (int)Math.Round(Conversion.Val(txtLastsDays.Text));
				num2 = 58;
				cScene.LastsHours = (int)Math.Round(Conversion.Val(cmbLastsHours.Text));
				num2 = 59;
				cScene.LastsMinutes = (int)Math.Round(Conversion.Val(cmbLastsMinutes.Text));
				num2 = 60;
				cScene.ImageFile = txtImageFile.Text;
				num2 = 61;
				StartWCTimer();
				num2 = 62;
				StartBackupTimer();
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num5 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_05c5: Could not find block for branch target IL_0591*/;
			}
			if (num5 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void MarkSelectionBold()
		{
			try
			{
				txtMain.SelectionFont = new Font(txtMain.SelectionFont, txtMain.SelectionFont.Style ^ FontStyle.Bold);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void MarkSelectionItalic()
		{
			try
			{
				txtMain.SelectionFont = new Font(txtMain.SelectionFont, txtMain.SelectionFont.Style ^ FontStyle.Italic);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void MarkSelectionUnderline()
		{
			try
			{
				txtMain.SelectionFont = new Font(txtMain.SelectionFont, txtMain.SelectionFont.Style ^ FontStyle.Underline);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void MarkSelectionStrikethrough()
		{
			try
			{
				txtMain.SelectionFont = new Font(txtMain.SelectionFont, txtMain.SelectionFont.Style ^ FontStyle.Strikeout);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ClearSelectionFormatting()
		{
			try
			{
				string selectedText = txtMain.SelectedText;
				txtMain.SelectedText = selectedText;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void MarkSelectionComment()
		{
			try
			{
				int selectionStart = txtMain.SelectionStart;
				_ = txtMain.SelectionLength;
				string selectedRtf = txtMain.SelectedRtf;
				txtMain.SelectedText = "/*  */";
				txtMain.Select(selectionStart + 3, 0);
				txtMain.SelectedRtf = selectedRtf;
				txtMain.Select(selectionStart, 0);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void FillCharCombo()
		{
			try
			{
				cmbViewpoint.Items.Clear();
				cmbViewpoint.DisplayMember = "Title";
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = cProject.Chars.GetEnumerator();
					while (enumerator.MoveNext())
					{
						clsCharacter clsCharacter = (clsCharacter)enumerator.Current;
						clsComboItem item = new clsComboItem(Conversions.ToString(clsCharacter.ID), clsCharacter.Title);
						cmbViewpoint.Items.Add(item);
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void FillSceneCombo()
		{
			SuppressComboChange = true;
			cmbScene.SuspendLayout();
			try
			{
				int belongsToChID = cProject.get_SceneByID(LocalScID).BelongsToChID;
				cmbScene.Items.Clear();
				cmbScene.DisplayMember = "Title";
				int sceneCount = cProject.get_ChapterByID(belongsToChID).SceneCount;
				for (int i = 1; i <= sceneCount; i++)
				{
					clsScene clsScene = cProject.get_SceneByChID(belongsToChID, i);
					clsComboItem item = new clsComboItem(Conversions.ToString(clsScene.ID), clsScene.Title);
					cmbScene.Items.Add(item);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			finally
			{
				cmbScene.ResumeLayout();
				SuppressComboChange = false;
			}
		}

		private int AddSceneToChapter(int ChID)
		{
			int result = default(int);
			try
			{
				int num = cProject.AddNewScene(ChID);
				cProject.get_ChapterByID(ChID).AddSceneID(num);
				result = num;
				return result;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
				return result;
			}
		}

		private void FillAllCombos(ref clsScene cScene)
		{
			clsFillList clsFillList = new clsFillList();
			try
			{
				SuppressComboChange = true;
				FillChapterCombo();
				SuppressComboChange = true;
				clsComboSubs cCombo = clsShared.cCombo;
				int belongsToChID = cScene.BelongsToChID;
				ComboBox CB = cmbChapter;
				cCombo.FindIDinCombo(belongsToChID, ref CB);
				cmbChapter = CB;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				SuppressComboChange = true;
				FillSceneCombo();
				SuppressComboChange = true;
				clsComboSubs cCombo2 = clsShared.cCombo;
				int iD = cScene.ID;
				ComboBox CB = cmbScene;
				cCombo2.FindIDinCombo(iD, ref CB);
				cmbScene = CB;
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			FillVPCombo(ReselectCurrent: false);
			try
			{
				SuppressComboChange = true;
				cmbStatus.SelectedIndex = cScene.Status - 1;
				if (cmbStatus.SelectedIndex == -1)
				{
					cmbStatus.SelectedIndex = 0;
				}
				SuppressComboChange = false;
			}
			catch (Exception ex5)
			{
				ProjectData.SetProjectError(ex5);
				Exception ex6 = ex5;
				clsShared.cLog.AddAction(ex6, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			if (cProject != null)
			{
				try
				{
					clsProject clsProject = cProject;
					ListView aList = ListCharAll;
					clsFillList.FillAllCharList(clsProject, ref aList, MajorOnly: false);
					ListCharAll = aList;
					clsProject clsProject2 = cProject;
					aList = ListCharUsed;
					clsFillList.FillCharInScene(clsProject2, ref aList, cScene.ID, MajorOnly: false);
					ListCharUsed = aList;
					if (ListCharUsed.Items.Count > 0)
					{
						ListCharUsed.Items[0].Selected = true;
					}
					clsProject clsProject3 = cProject;
					aList = ListLocAll;
					clsFillList.FillAllLocations(clsProject3, ref aList);
					ListLocAll = aList;
					clsProject clsProject4 = cProject;
					aList = ListLocUsed;
					clsFillList.FillLocationsInScene(clsProject4, ref aList, LocalScID);
					ListLocUsed = aList;
					clsProject clsProject5 = cProject;
					aList = ListItemsAll;
					clsFillList.FillAllItems(clsProject5, ref aList);
					ListItemsAll = aList;
					clsProject clsProject6 = cProject;
					aList = listItemsUsed;
					clsFillList.FillItemsInScene(clsProject6, ref aList, LocalScID);
					listItemsUsed = aList;
				}
				catch (Exception ex7)
				{
					ProjectData.SetProjectError(ex7);
					Exception ex8 = ex7;
					clsShared.cLog.AddAction(ex8, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void FillVPCombo(bool ReselectCurrent)
		{
			try
			{
				int num = CurrentVPID();
				SuppressComboChange = true;
				FillCharCombo();
				if (ReselectCurrent)
				{
					if (num > 0)
					{
						clsComboSubs cCombo = clsShared.cCombo;
						ComboBox CB = cmbViewpoint;
						cCombo.FindIDinCombo(num, ref CB);
						cmbViewpoint = CB;
					}
				}
				else
				{
					clsComboSubs cCombo2 = clsShared.cCombo;
					int viewPointID = cProject.get_SceneByID(LocalScID).ViewPointID;
					ComboBox CB = cmbViewpoint;
					cCombo2.FindIDinCombo(viewPointID, ref CB);
					cmbViewpoint = CB;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			SuppressComboChange = false;
		}

		private void DisableControls()
		{
			DisableOrEnable(Enable: false);
		}

		private void EnableControls()
		{
			DisableOrEnable(Enable: true);
		}

		private void DisableOrEnable(bool Enable)
		{
			//Discarded unreachable code: IL_005c, IL_0072, IL_007d, IL_008a, IL_00c0, IL_00c2, IL_00d6, IL_00f8
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				IEnumerator enumerator = base.Controls.GetEnumerator();
				while (enumerator.MoveNext())
				{
					Control control = (Control)enumerator.Current;
					num2 = 3;
					if (control is GroupBox)
					{
						num2 = 4;
						control.Enabled = Enable;
					}
					num2 = 5;
				}
				num2 = 6;
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_00f6: Could not find block for branch target IL_00c2*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void StorePos()
		{
			try
			{
				CurrentPos = txtMain.SelectionStart;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		private void RestorePos()
		{
			try
			{
				txtMain.SelectionStart = CurrentPos;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		private void SetIndent(ref RichTextBox RTFBox)
		{
			SuppressSnapshot = true;
			try
			{
				RTFBox.SelectAll();
				if (!clsShared.cOSInfo.IsWine())
				{
					RTFBox.SelectionIndent = CurrentIndent + 6;
					RTFBox.SelectionHangingIndent = -CurrentIndent;
				}
				else
				{
					RTFBox.SelectionIndent = 0;
					RTFBox.SelectionHangingIndent = 0;
				}
				RTFBox.Select(0, 0);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			SuppressSnapshot = false;
		}

		private void SaveFormSettings()
		{
			clsShared.cSettings.StoreWindowSettings("Editor", this);
			clsShared.cSettings.sSet("EditorWindowHSplit", TableLayoutMainDetails.Height);
		}

		private void SetGoalsLabels()
		{
			try
			{
				if (optAction.Checked)
				{
					lblGoal.Text = clsShared.cLang.GetTranslation("Goal");
					lblConflict.Text = clsShared.cLang.GetTranslation("Conflict");
					lblOutcome.Text = clsShared.cLang.GetTranslation("Outcome");
				}
				else
				{
					lblGoal.Text = clsShared.cLang.GetTranslation("Reaction");
					lblConflict.Text = clsShared.cLang.GetTranslation("Dilemma");
					lblOutcome.Text = clsShared.cLang.GetTranslation("Choice");
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void DisplayCharacter(int CharID)
		{
			//Discarded unreachable code: IL_01a3, IL_01ba, IL_01c5, IL_01d5, IL_0243, IL_0245, IL_0259, IL_027b
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (cmbViewpoint.SelectedIndex >= 0)
				{
					num2 = 4;
					if (CharID <= 0)
					{
						num2 = 5;
						txtCharDesc.Text = "";
						num2 = 6;
						txtCharNotes.Text = "";
						num2 = 7;
						lblViewpointChar.Text = "";
						num2 = 8;
						lblFullName.Text = "";
						num2 = 9;
						lblSelectedCharID.Text = Conversions.ToString(-1);
					}
					else
					{
						num2 = 11;
						lblSelectedCharID.Text = Conversions.ToString(CharID);
						num2 = 12;
						clsCharacter clsCharacter = cProject.get_CharByID(CharID);
						num2 = 13;
						txtCharDesc.Text = "DESC: " + clsCharacter.DescText;
						num2 = 14;
						txtCharDesc.Text = txtCharDesc.Text + "\r\n\r\nGOALS: " + clsCharacter.Goals;
						num2 = 15;
						txtCharDesc.Text = txtCharDesc.Text + "\r\n\r\nBIO: " + clsCharacter.Bio;
						num2 = 16;
						txtCharDesc.Text += "\r\n\r\nDouble-click to edit this information";
						num2 = 17;
						txtCharNotes.Text = "NOTES: " + clsCharacter.Notes;
						num2 = 18;
						txtCharNotes.Text += "\r\n\r\nDouble-click to edit this information";
						num2 = 19;
						lblViewpointChar.Text = clsCharacter.Title;
						num2 = 20;
						lblFullName.Text = clsCharacter.FullName;
					}
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0279: Could not find block for branch target IL_0245*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void ResetFontColour(ref RichTextBox RTFBox)
		{
			try
			{
				RTFBox.SuspendLayout();
				SuppressSnapshot = true;
				RTFBox.Select(0, RTFBox.Text.Length);
				RTFBox.SelectionColor = FGColour;
				RTFBox.Select(0, 0);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			SuppressSnapshot = false;
			RTFBox.ResumeLayout();
		}

		private void DisplayTabIcons()
		{
		}

		private void ResetWCTimer()
		{
			TimerWC.Stop();
			TimerWC.Start();
		}

		private void StartWCTimer()
		{
			TimerWC.Interval = 3000;
			TimerWC.Start();
		}

		private void StopWCTimer()
		{
			TimerWC.Stop();
		}

		private void StartBackupTimer()
		{
			TimerBackup.Interval = 60000;
			TimerBackup.Start();
		}

		private void StopBackupTimer()
		{
			TimerBackup.Stop();
		}

		private void FindVPInCombo()
		{
			SuppressComboChange = true;
			try
			{
				clsComboSubs cCombo = clsShared.cCombo;
				int viewPointID = cProject.get_SceneByID(LocalScID).ViewPointID;
				ComboBox CB = cmbViewpoint;
				cCombo.FindIDinCombo(viewPointID, ref CB);
				cmbViewpoint = CB;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			SuppressComboChange = false;
		}

		private void ReadFontBarSetting()
		{
			try
			{
				if (clsShared.cSettings.sGet("HideFontBar", DefaultIfUnknown: false))
				{
					HideFontBarToolStripMenuItem1.Checked = true;
					ToolStripFontbar.Visible = false;
				}
				else
				{
					HideFontBarToolStripMenuItem1.Checked = false;
					ToolStripFontbar.Visible = true;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ReadDateModeSetting()
		{
			if (clsShared.cSettings.sGet("DefaultToSpecificDate", DefaultIfUnknown: false))
			{
				ShowSpecificDateFrame();
			}
			else
			{
				ShowDHMFrame();
			}
		}

		private void ReadAllowTabsSetting()
		{
			if (clsShared.cSettings.sGet("AllowTabsInEditor", DefaultIfUnknown: false))
			{
				AllowTABInEditorWindowToolStripMenuItem.Checked = true;
				AllowTabsInEditor = true;
			}
			else
			{
				AllowTABInEditorWindowToolStripMenuItem.Checked = false;
				AllowTabsInEditor = false;
			}
			txtMain.AcceptsTab = AllowTabsInEditor;
		}

		private void FillCombos()
		{
			SuppressSnapshot = true;
			try
			{
				clsShared.cLog.AddAction("Started Fill Combos");
				FillFieldCombos();
				FillStatusCombo();
				if (cmbMinute.Items.Count == 0)
				{
					FillTimeCombos();
				}
				TimerFillFontCombo.Start();
				clsShared.cLog.AddAction("Finished Fill Combos");
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			SuppressSnapshot = false;
		}

		private void FillFieldCombos()
		{
			SuppressComboChange = true;
			try
			{
				int num = 0;
				do
				{
					clsShared.cLog.AddAction("Setting up field combo " + Conversions.ToString(num + 1));
					cmbFieldVal[num].Items.Clear();
					int num2 = 1;
					do
					{
						cmbFieldVal[num].Items.Add(Conversions.ToString(num2));
						num2++;
					}
					while (num2 <= 10);
					cmbFieldVal[num].SelectedIndex = 0;
					cmbFieldVal[num].Tag = num;
					num++;
				}
				while (num <= 3);
				num = 1;
				do
				{
					clsShared.cLog.AddAction("Setting field label " + Conversions.ToString(num) + " to " + cProject.get_FieldTitle(num));
					lblFieldTitle[num - 1].Text = cProject.get_FieldTitle(num) + ":";
					num++;
				}
				while (num <= 4);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			SuppressComboChange = false;
		}

		public void ReadEditorSettings()
		{
			if (!_0024STATIC_0024ReadEditorSettings_00242001_0024AlreadyReading)
			{
				_0024STATIC_0024ReadEditorSettings_00242001_0024AlreadyReading = true;
				try
				{
					clsShared.cLog.AddAction("Reading Editor Settings");
					clsSettings cSettings = clsShared.cSettings;
					Form Form = this;
					cSettings.ReadWindowSettings("Editor", ref Form);
					int num = (int)Math.Round(clsShared.cSettings.sGet("EditorWindowHSplit", TableLayoutMainDetails.Height));
					if ((double)num > (double)base.Height / 2.0)
					{
						num = (int)Math.Round((double)base.Height / 2.0);
					}
					else if ((double)num < (double)TableLayoutMainDetails.Height / 2.0)
					{
						num = (int)Math.Round((double)TableLayoutMainDetails.Height / 2.0);
					}
					txtDesc.Dock = DockStyle.None;
					txtDesc.Dock = DockStyle.Fill;
					TableLayoutMainDetails.Height = num;
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					ProjectData.ClearProjectError();
				}
				try
				{
					Maxed = clsShared.cSettings.sGet("EditorMaxed", DefaultIfUnknown: false);
					clsShared.cFormFont.SetFormFont(this, clsShared.cSettings.sGet("FormFont", modVariables.DefaultUIFont.Name), clsShared.cSettings.sGet("UIFontSize", modVariables.DefaultUIFont.Size));
					RefreshSettings();
				}
				catch (Exception ex3)
				{
					ProjectData.SetProjectError(ex3);
					Exception ex4 = ex3;
					clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
				_0024STATIC_0024ReadEditorSettings_00242001_0024AlreadyReading = false;
			}
		}

		private void SetupControlArrays()
		{
			try
			{
				clsShared.cLog.AddAction("Setting up control arrays", MethodBase.GetCurrentMethod());
				cmbFieldVal = new ComboBox[4]
				{
					cmbField0,
					cmbField1,
					cmbField2,
					cmbField3
				};
				lblFieldTitle = new Label[4]
				{
					lblField0,
					lblField1,
					lblField2,
					lblField3
				};
				int num = 0;
				do
				{
					lblFieldTitle[num].Tag = num;
					cmbFieldVal[num].Tag = num;
					num++;
				}
				while (num <= 3);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void FillTimeCombos()
		{
			SuppressComboChange = true;
			try
			{
				if (cmbHour.Items.Count == 0)
				{
					cmbHour.Items.Clear();
					cmbLastsHours.Items.Clear();
					int num = 0;
					do
					{
						cmbHour.Items.Add(Conversions.ToString(num));
						cmbLastsHours.Items.Add(Conversions.ToString(num));
						num++;
					}
					while (num <= 23);
					cmbHour.SelectedIndex = 0;
					cmbLastsHours.SelectedIndex = 0;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				if (cmbMinute.Items.Count == 0)
				{
					cmbMinute.Items.Clear();
					cmbLastsMinutes.Items.Clear();
					int num2 = 0;
					do
					{
						cmbMinute.Items.Add(Strings.Format(num2, "00"));
						cmbLastsMinutes.Items.Add(Strings.Format(num2, "00"));
						num2++;
					}
					while (num2 <= 59);
					cmbMinute.SelectedIndex = 0;
					cmbLastsMinutes.SelectedIndex = 0;
				}
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			SuppressComboChange = false;
		}

		private void FillHighlightMenu()
		{
			try
			{
				while (tsmHighlight.DropDownItems.Count > 2)
				{
					tsmHighlight.DropDownItems.RemoveAt(0);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
			try
			{
				int num = 0;
				Color color;
				do
				{
					num++;
					color = clsShared.cSettings.sGet("HighlightColour" + Conversions.ToString(num), Color.Empty);
					if (color == Color.Empty)
					{
						break;
					}
					AddHighlightTSM(color);
				}
				while (!(color == Color.Empty));
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				ProjectData.ClearProjectError();
			}
			try
			{
				if (tsmHighlight.DropDownItems.Count <= 2)
				{
					AddHighlightTSM(Color.Yellow);
				}
			}
			catch (Exception ex5)
			{
				ProjectData.SetProjectError(ex5);
				Exception ex6 = ex5;
				ProjectData.ClearProjectError();
			}
		}

		private void AddHighlightTSM(Color NewColour)
		{
			try
			{
				ToolStripMenuItem toolStripMenuItem = new ToolStripMenuItem();
				toolStripMenuItem.Tag = NewColour.ToArgb();
				Bitmap image = new Bitmap(16, 16, PixelFormat.Format32bppRgb);
				Graphics graphics = Graphics.FromImage(image);
				graphics.Clear(NewColour);
				toolStripMenuItem.Image = image;
				graphics.Dispose();
				toolStripMenuItem.Text = "Highlight " + Conversions.ToString(tsmHighlight.DropDownItems.Count - 1);
				if (tsmHighlight.DropDownItems.Count == 2)
				{
					tsmHighlight.DropDownItems.Insert(0, toolStripMenuItem);
				}
				else
				{
					tsmHighlight.DropDownItems.Insert(tsmHighlight.DropDownItems.Count - 2, toolStripMenuItem);
				}
				toolStripMenuItem.Click += HighlightClicked;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void FillStatusCombo()
		{
			try
			{
				SuppressComboChange = true;
				cmbStatus.Items.Clear();
				int num = modVariables.StatusNames.Length - 1;
				for (int i = 1; i <= num; i++)
				{
					cmbStatus.Items.Add(clsShared.cLang.GetTranslation(modVariables.StatusNames[i]));
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			SuppressComboChange = false;
		}

		private void tsbBold_Click(object sender, EventArgs e)
		{
			SuppressSnapshot = true;
			MarkSelectionBold();
			SuppressSnapshot = false;
		}

		private void tsbItalic_Click(object sender, EventArgs e)
		{
			SuppressSnapshot = true;
			MarkSelectionItalic();
			SuppressSnapshot = false;
		}

		private void tsbUnderline_Click(object sender, EventArgs e)
		{
			SuppressSnapshot = true;
			MarkSelectionUnderline();
			SuppressSnapshot = false;
		}

		private void tsmEditListItem_Click(object sender, EventArgs e)
		{
			try
			{
				ListView listView = modSubs.WhichListClicked(RuntimeHelpers.GetObjectValue(sender));
				if (listView.Equals(ListCharUsed))
				{
					EditSelectedCharacter(ListCharUsed);
				}
				else if (listView.Equals(ListCharAll))
				{
					EditSelectedCharacter(ListCharAll);
				}
				else if (listView.Equals(ListLocUsed))
				{
					EditSelectedLocation(ListLocUsed);
				}
				else if (listView.Equals(ListLocAll))
				{
					EditSelectedLocation(ListLocAll);
				}
				else if (listView.Equals(listItemsUsed))
				{
					EditSelectedItem(listItemsUsed);
				}
				else if (listView.Equals(ListItemsAll))
				{
					EditSelectedItem(ListItemsAll);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListCharUsed_DoubleClick(object sender, EventArgs e)
		{
			EditSelectedCharacter(ListCharUsed);
		}

		private void ListCharUsed_DragDrop(object sender, DragEventArgs e)
		{
			ListView aList = ListCharUsed;
			AddToUsedList(ref aList, e, IsChar: true, IsLoc: false, IsItem: false);
			ListCharUsed = aList;
		}

		private void ListCharUsed_DragOver(object sender, DragEventArgs e)
		{
			if (!DraggingChar)
			{
				e.Effect = DragDropEffects.None;
			}
			else if (e.Data.GetDataPresent(DataFormats.StringFormat, autoConvert: false))
			{
				e.Effect = DragDropEffects.Copy;
			}
		}

		private void ListCharUsed_ItemDrag(object sender, ItemDragEventArgs e)
		{
			if (e.Button == MouseButtons.Left)
			{
				try
				{
					ListView SourceList = ListCharUsed;
					DragStart(ref SourceList, ref DraggingChar, DragDropEffects.Move);
					ListCharUsed = SourceList;
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void ListCharPresent_SelectedIndexChanged(object sender, EventArgs e)
		{
			if (!SuppressComboChange)
			{
				int charID = SelectedID(ListCharUsed);
				DisplayCharacter(charID);
			}
		}

		private void ctxListsRC_Opening(object sender, CancelEventArgs e)
		{
			try
			{
				ListView obj = (ListView)((ContextMenuStrip)sender).SourceControl;
				if (obj.Equals(ListCharUsed))
				{
					tsmEditListItem.Tag = 0;
				}
				else
				{
					tsmEditListItem.Tag = 1;
				}
				if (obj.Items.Count == 0)
				{
					tsmEditListItem.Enabled = false;
				}
				else
				{
					tsmEditListItem.Enabled = true;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ctxBGColour_Click(object sender, EventArgs e)
		{
			ChooseBGColour();
		}

		private void ctxFGColour_Click(object sender, EventArgs e)
		{
			ChooseFGColour();
		}

		private void ctxThesLookup_Click(object sender, EventArgs e)
		{
			string text = clsShared.cSettings.sGet("ThesaurusURL", "http://thesaurus.reference.com/search?q=@@@");
			clsShared.cSettings.sSet("ThesaurusURL", text);
			WordLookup(text);
		}

		private void ctxDictLookup_Click(object sender, EventArgs e)
		{
			string text = clsShared.cSettings.sGet("DictionaryURL", "http://dictionary.reference.com/search?q=@@@");
			clsShared.cSettings.sSet("DictionaryURL", text);
			WordLookup(text);
		}

		private void ctxAddToDict_Click(object sender, EventArgs e)
		{
			try
			{
				string StringToClean = txtMain.SelectedText;
				modSJ.cSpell.CleanPunctuation(ref StringToClean);
				StringToClean = Strings.Trim(StringToClean);
				modSJ.cSpell.AddWordToCustomDict(StringToClean);
				SpellCheck(Force: true);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ctxCutAsDesc_Click(object sender, EventArgs e)
		{
			try
			{
				if (txtMain.SelectionLength > 0)
				{
					string selectedText = txtMain.SelectedText;
					txtDesc.Text = selectedText;
					txtMain.SelectedText = "";
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ctxCutAsTitle_Click(object sender, EventArgs e)
		{
			try
			{
				if (txtMain.SelectionLength > 0)
				{
					string selectedText = txtMain.SelectedText;
					selectedText = clsShared.cText.CRLFToSpaces(selectedText);
					selectedText = clsShared.cText.RemoveDblSpaces(selectedText);
					txtTitle.Text = selectedText;
					txtMain.SelectedText = "";
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ctxPaste_Click(object sender, EventArgs e)
		{
			PasteClipboardToWindow();
		}

		private void ctxCopy_Click(object sender, EventArgs e)
		{
			CopySelectedToClipboard();
		}

		private void ctxCut_Click(object sender, EventArgs e)
		{
			try
			{
				if (Operators.CompareString(txtMain.SelectedText, "", TextCompare: false) != 0)
				{
					MyProject.Computer.Clipboard.Clear();
					MyProject.Computer.Clipboard.SetText(txtMain.SelectedText);
					txtMain.SelectedText = "";
					Dirty = true;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void cmdSave_Click(object sender, EventArgs e)
		{
			try
			{
				SaveChanges(SpellCheckAfterIfOn: true);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void cmdSaveAndExit_Click(object sender, EventArgs e)
		{
			try
			{
				StopWCTimer();
				StopBackupTimer();
				DisableControls();
				SaveFormSettings();
				SaveChanges(SpellCheckAfterIfOn: false);
				ExitForm();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void cmdPrev_Click(object sender, EventArgs e)
		{
			if (!EditorDone)
			{
				try
				{
					if (cmbScene.SelectedIndex > 0)
					{
						SuppressComboChange = true;
						cmbScene.SelectedIndex--;
						SwitchScene();
						SuppressComboChange = false;
					}
					else
					{
						SuppressComboChange = true;
						if (cmbChapter.SelectedIndex > 0)
						{
							cmbChapter.SelectedIndex--;
						}
						else
						{
							cmbChapter.SelectedIndex = cmbChapter.Items.Count - 1;
						}
						SuppressComboChange = false;
						SwitchChapter(GoingUp: false);
					}
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void cmdNext_Click(object sender, EventArgs e)
		{
			if (!EditorDone)
			{
				try
				{
					if (cmbScene.SelectedIndex < cmbScene.Items.Count - 1)
					{
						SuppressComboChange = true;
						cmbScene.SelectedIndex++;
						SwitchScene();
						SuppressComboChange = false;
					}
					else
					{
						SuppressComboChange = true;
						cmbChapter.SuspendLayout();
						cmbScene.SuspendLayout();
						if (cmbChapter.SelectedIndex < cmbChapter.Items.Count - 1)
						{
							cmbChapter.SelectedIndex++;
						}
						else
						{
							cmbChapter.SelectedIndex = 0;
						}
						SuppressComboChange = false;
						SwitchChapter(GoingUp: true);
						cmbChapter.ResumeLayout();
						cmbScene.ResumeLayout();
					}
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private string CleanRTF()
		{
			string text = "";
			try
			{
				string fontname = clsShared.cSettings.sGet("EditorFontName", "Segoe UI");
				int num = (int)Math.Round(clsShared.cSettings.sGet("EditorFontSize", 10f));
				string strRichText = txtMain.Rtf;
				cRTF.ReplaceRTFFontName(ref strRichText, fontname);
				cRTF.ReplaceRTFFontSize(ref strRichText, num);
				TBHidden.Rtf = strRichText;
				ResetFontColour(ref TBHidden);
				SetIndent(ref TBHidden);
				return TBHidden.Rtf;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				text = txtMain.Rtf;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
				return text;
			}
		}

		private void SetFont(ref RichTextBox RTFBox, string Fontname, float FontSize)
		{
			int selectionStart = RTFBox.SelectionStart;
			try
			{
				RTFBox.Select(0, RTFBox.Text.Length);
				RTFBox.Font = new Font(Fontname, FontSize);
				RTFBox.Select(0, 0);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			RTFBox.SelectionStart = selectionStart;
		}

		private int CurrentVPID()
		{
			int result = 0;
			try
			{
				if (cmbViewpoint.SelectedIndex < 0)
				{
					result = -1;
					return result;
				}
				result = Conversions.ToInteger(((clsComboItem)cmbViewpoint.SelectedItem).ID);
				return result;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
				return result;
			}
		}

		private void ListCharAll_DoubleClick(object sender, EventArgs e)
		{
			EditSelectedCharacter(ListCharAll);
		}

		private void ListCharAll_DragDrop(object sender, DragEventArgs e)
		{
			RemoveFromScene(e, IsChar: true, IsLoc: false, IsItem: false);
		}

		private void ListCharAll_DragOver(object sender, DragEventArgs e)
		{
			if (!DraggingChar)
			{
				e.Effect = DragDropEffects.None;
			}
			else if (e.Data.GetDataPresent(DataFormats.StringFormat, autoConvert: false))
			{
				e.Effect = DragDropEffects.Move;
			}
		}

		private void ListCharAll_ItemDrag(object sender, ItemDragEventArgs e)
		{
			if (e.Button == MouseButtons.Left)
			{
				try
				{
					ListView SourceList = ListCharAll;
					DragStart(ref SourceList, ref DraggingChar, DragDropEffects.Copy);
					ListCharAll = SourceList;
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void ListCharAll_MouseClick(object sender, MouseEventArgs e)
		{
		}

		private void ListCharAll_SelectedIndexChanged(object sender, EventArgs e)
		{
			if (!SuppressComboChange)
			{
				try
				{
					int charID = SelectedID(ListCharAll);
					DisplayCharacter(charID);
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void DragStart(ref ListView SourceList, ref bool DraggingWhat, DragDropEffects Effect)
		{
			try
			{
				string[] array = new string[SourceList.SelectedItems.Count - 1 + 1];
				int num = 0;
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = SourceList.SelectedItems.GetEnumerator();
					while (enumerator.MoveNext())
					{
						ListViewItem listViewItem = (ListViewItem)enumerator.Current;
						array[num] = Conversions.ToString(listViewItem.Tag);
						num++;
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
				DraggingWhat = true;
				DoDragDrop(new DataObject(DataFormats.StringFormat, array), Effect);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void cProject_AddedNewChapter(int ID)
		{
			try
			{
				int num = default(int);
				if (cmbChapter.SelectedIndex >= 0)
				{
					num = Conversions.ToInteger(((clsComboItem)cmbChapter.Items[cmbChapter.SelectedIndex]).ID);
				}
				FillChapterCombo();
				SuppressComboChange = true;
				if (num > 0)
				{
					clsComboSubs cCombo = clsShared.cCombo;
					int iD = num;
					ComboBox CB = cmbChapter;
					cCombo.FindIDinCombo(iD, ref CB);
					cmbChapter = CB;
				}
				SuppressComboChange = false;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void cProject_UpdatedChar(int ID)
		{
			try
			{
				HighlightCharLocItemsIfNeeded();
				clsFillList clsFillList = cFill;
				clsProject clsProject = cProject;
				ListView aList = ListCharAll;
				clsFillList.FillAllCharList(clsProject, ref aList, MajorOnly: false);
				ListCharAll = aList;
				FillVPCombo(ReselectCurrent: true);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void cProject_UpdatedLocation(int ID)
		{
			try
			{
				clsFillList clsFillList = cFill;
				clsProject clsProject = cProject;
				ListView aList = ListLocAll;
				clsFillList.FillAllLocations(clsProject, ref aList);
				ListLocAll = aList;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		private void cProject_UpdatedItem(int ID)
		{
			try
			{
				clsFillList clsFillList = cFill;
				clsProject clsProject = cProject;
				ListView aList = ListItemsAll;
				clsFillList.FillAllItems(clsProject, ref aList);
				ListItemsAll = aList;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		private void cProject_AddedNewScene(int ID)
		{
			clsShared.cLog.AddAction("Project: New scene added");
			try
			{
				if (cProject.get_SceneByID(ID).BelongsToChID == cProject.get_SceneByID(LocalScID).BelongsToChID)
				{
					FillSceneCombo();
					SuppressComboChange = true;
					clsComboSubs cCombo = clsShared.cCombo;
					int localScID = LocalScID;
					ComboBox CB = cmbScene;
					cCombo.FindIDinCombo(localScID, ref CB);
					cmbScene = CB;
					SuppressComboChange = false;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void CopyTextBoxToMain(ref RichTextBox RTF)
		{
			bool dirty = Dirty;
			try
			{
				txtMain.SuspendLayout();
				StorePos();
				txtMain.Rtf = RTF.Rtf;
				txtMain.ClearUndo();
				RestorePos();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			txtMain.ResumeLayout();
			Dirty = dirty;
		}

		private void cProject_SavedScene(int ID)
		{
			if (LocalScID == 0)
			{
				RemoveAllHandlers();
			}
			else
			{
				try
				{
					IEnumerator enumerator = default(IEnumerator);
					try
					{
						enumerator = cmbScene.Items.GetEnumerator();
						while (enumerator.MoveNext())
						{
							clsComboItem clsComboItem = (clsComboItem)enumerator.Current;
							if (Conversions.ToDouble(clsComboItem.ID) == (double)ID)
							{
								clsComboItem.Title = cProject.get_SceneByID(ID).Title;
							}
						}
					}
					finally
					{
						if (enumerator is IDisposable)
						{
							(enumerator as IDisposable).Dispose();
						}
					}
					if (ID == LocalScID)
					{
						clsComboItem clsComboItem2 = (clsComboItem)cmbChapter.SelectedItem;
						if (clsComboItem2 != null)
						{
							if ((double)cProject.get_SceneByID(ID).BelongsToChID != Conversions.ToDouble(clsComboItem2.ID))
							{
								FillChapterCombo();
							}
							clsFillList clsFillList = new clsFillList();
							clsProject clsProject = cProject;
							ListView aList = ListCharUsed;
							clsFillList.FillCharInScene(clsProject, ref aList, ID, MajorOnly: false);
							ListCharUsed = aList;
							clsProject clsProject2 = cProject;
							aList = ListLocUsed;
							clsFillList.FillLocationsInScene(clsProject2, ref aList, ID);
							ListLocUsed = aList;
							clsProject clsProject3 = cProject;
							aList = listItemsUsed;
							clsFillList.FillItemsInScene(clsProject3, ref aList, ID);
							listItemsUsed = aList;
						}
					}
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void cProject_SavedChapter(int ID)
		{
			try
			{
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = cmbChapter.Items.GetEnumerator();
					while (enumerator.MoveNext())
					{
						clsComboItem clsComboItem = (clsComboItem)enumerator.Current;
						if (Conversions.ToDouble(clsComboItem.ID) == (double)ID)
						{
							clsComboItem.Title = cProject.get_ChapterByID(ID).Title;
						}
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void cProject_SavedChar(int ID)
		{
			try
			{
				if (mnuMarkKnownChar.Checked)
				{
					SpellCheck(Force: false);
				}
				FillVPCombo(ReselectCurrent: true);
				clsCharacter clsCharacter = cProject.get_CharByID(ID);
				ListCharAll.Items[Conversions.ToString(ID)].Text = clsCharacter.Title;
				ListCharAll.Items[Conversions.ToString(ID)].SubItems[1].Text = clsCharacter.FullName;
				if (ListCharUsed.Items.ContainsKey(Conversions.ToString(ID)))
				{
					ListCharUsed.Items[Conversions.ToString(ID)].Text = clsCharacter.Title;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void cProject_SavedLocation(int ID)
		{
			try
			{
				clsLocation clsLocation = cProject.get_LocationByID(ID);
				ListLocAll.Items[Conversions.ToString(ID)].Text = clsLocation.Title;
				if (ListLocUsed.Items.ContainsKey(Conversions.ToString(ID)))
				{
					ListLocUsed.Items[Conversions.ToString(ID)].Text = clsLocation.Title;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void cProject_SavedItem(int ID)
		{
			try
			{
				clsItem clsItem = cProject.get_ItemByID(ID);
				ListItemsAll.Items[Conversions.ToString(ID)].Text = clsItem.Title;
				if (listItemsUsed.Items.ContainsKey(Conversions.ToString(ID)))
				{
					listItemsUsed.Items[Conversions.ToString(ID)].Text = clsItem.Title;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		~frmEditor()
		{
			RemoveAllHandlers();
			//base.Finalize();
		}

		private void RemoveAllHandlers()
		{
			try
			{
				if (cProject != null)
				{
					cProject.AddedNewChar -= cProject_UpdatedChar;
					cProject.AddedNewScene -= cProject_AddedNewScene;
					cProject.AddedNewChapter -= cProject_AddedNewChapter;
					cProject.AddedNewItem -= cProject_UpdatedItem;
					cProject.AddedNewLocation -= cProject_UpdatedLocation;
					cProject.RemovedChar -= cProject_UpdatedChar;
					cProject.RemovedItem -= cProject_UpdatedItem;
					cProject.RemovedLocation -= cProject_UpdatedLocation;
					cProject.SavedScene -= cProject_SavedScene;
					cProject.SavedChapter -= cProject_SavedChapter;
					cProject.SavedChar -= cProject_SavedChar;
					cProject.SavedItem -= cProject_SavedItem;
					cProject.SavedLocation -= cProject_SavedLocation;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void AddAllHandlers()
		{
			try
			{
				cProject.AddedNewChar += cProject_UpdatedChar;
				cProject.AddedNewScene += cProject_AddedNewScene;
				cProject.AddedNewChapter += cProject_AddedNewChapter;
				cProject.AddedNewItem += cProject_UpdatedItem;
				cProject.AddedNewLocation += cProject_UpdatedLocation;
				cProject.RemovedChar += cProject_UpdatedChar;
				cProject.RemovedItem += cProject_UpdatedItem;
				cProject.RemovedLocation += cProject_UpdatedLocation;
				cProject.SavedChar += cProject_SavedChar;
				cProject.SavedItem += cProject_SavedItem;
				cProject.SavedLocation += cProject_SavedLocation;
				cProject.SavedScene += cProject_SavedScene;
				cProject.SavedChapter += cProject_SavedChapter;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void cmdSelectImage_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				string text = modSubs.SelectAndCopyImage(ref cProject);
				if (Operators.CompareString(text, "", TextCompare: false) != 0)
				{
					txtImageFile.Text = text;
					ref clsProject reference = ref cProject;
					string text2 = txtImageFile.Text;
					PictureBox Picture = Picture1;
					PictureBox Image = Image2;
					TabPage TabPage = tabImage;
					modSubs.DisplayImage(ref reference, text2, ref Picture, ref Image, ref TabPage);
					tabImage = TabPage;
					Image2 = Image;
					Picture1 = Picture;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			if (Operators.CompareString(txtImageFile.Text.Trim(), "", TextCompare: false) == 0)
			{
				tabImage.ImageKey = "";
			}
			else
			{
				tabImage.ImageKey = "yw_Art_16.ico";
			}
		}

		private void SetForeColour(Color Colour)
		{
			try
			{
				txtMain.Select(0, txtMain.Text.Length);
				txtMain.SelectionColor = Colour;
				SetBackcolour();
				txtMain.Select(0, 0);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void SetSpellCheckColourToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				ColorDialog1.Color = Spellingcolour;
				ColorDialog1.FullOpen = true;
				ColorDialog1.SolidColorOnly = true;
				ColorDialog1.ShowDialog();
				Spellingcolour = ColorDialog1.Color;
				SaveColours();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			SpellCheck(Force: false);
		}

		private void SetCharacterHighlightToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				ColorDialog1.Color = CharColour;
				ColorDialog1.FullOpen = true;
				ColorDialog1.SolidColorOnly = true;
				ColorDialog1.ShowDialog();
				CharColour = ColorDialog1.Color;
				SaveColours();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			SpellCheck(Force: false);
		}

		private void SetLocationsColourToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				ColorDialog1.Color = LocationsColour;
				ColorDialog1.FullOpen = true;
				ColorDialog1.SolidColorOnly = true;
				ColorDialog1.ShowDialog();
				LocationsColour = ColorDialog1.Color;
				SaveColours();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			SpellCheck(Force: false);
		}

		private void SetItemsColourToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				ColorDialog1.Color = ItemsColour;
				ColorDialog1.FullOpen = true;
				ColorDialog1.SolidColorOnly = true;
				ColorDialog1.ShowDialog();
				ItemsColour = ColorDialog1.Color;
				SaveColours();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			SpellCheck(Force: false);
		}

		private void FillFontCombo()
		{
			SuppressComboChange = true;
			try
			{
				cmbFontSize.Items.Clear();
				cmbFontSize.BeginUpdate();
				int num = 8;
				do
				{
					cmbFontSize.Items.Add(num);
					num += 2;
				}
				while (num <= 48);
				cmbFontSize.EndUpdate();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				cmbFontSize.EndUpdate();
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				cmbFont.Items.Clear();
				cmbFont.BeginUpdate();
				if (cmbFont.Items.Count == 0)
				{
					clsFonts cFonts = clsShared.cFonts;
					ComboBox.ObjectCollection FontComboItems = cmbFont.Items;
					cFonts.FillCombo(ref FontComboItems);
				}
				cmbFont.EndUpdate();
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				cmbFont.EndUpdate();
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			SuppressComboChange = false;
		}

		private void OpenDictionaryFolderToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				string text = Path.Combine(modVariables.DATAPATH, "Dict");
				clsShared.cFile.MkMissingDir(text);
				clsShared.cFile.RunFile(text);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void SetParagraphIndentToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				string text = Interaction.InputBox("Enter the indent (0-50)", "", Conversions.ToString(CurrentIndent));
				if (Operators.CompareString(text, "", TextCompare: false) != 0)
				{
					CurrentIndent = Conversions.ToShort(text);
					clsShared.cSettings.sSet("EditorIndent", CurrentIndent);
					TBHidden.Rtf = txtMain.Rtf;
					SetIndent(ref TBHidden);
					CopyTextBoxToMain(ref TBHidden);
					SettingsChangedEvent?.Invoke(LocalScID);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void frmEditor_Load(object sender, EventArgs e)
		{
			try
			{
				if (!modSubs.SpeechAvailable())
				{
					tsbReadAloud.Enabled = false;
					tsbReadAloud.ToolTipText = "Install the dotnet 3.0 runtime to enable speech";
					tsbSetupSpeech.Visible = false;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				tsbReadAloud.Visible = false;
				tsbSetupSpeech.Visible = false;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void UseRightctrlForDBCSEntryToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (UseRightctrlForDBCSEntryToolStripMenuItem.Checked)
			{
				clsShared.cSettings.sSet("UseRightctrlForDBCSEntry", false);
			}
			else
			{
				clsShared.cSettings.sSet("UseRightctrlForDBCSEntry", true);
			}
			SetControlKeyUsage();
			SettingsChangedEvent?.Invoke(LocalScID);
		}

		private void SetControlKeyUsage()
		{
			if (clsShared.cSettings.sGet("UseRightctrlForDBCSEntry", DefaultIfUnknown: false))
			{
				UseRightctrlForDBCSEntryToolStripMenuItem.Checked = true;
				UseRightControl = false;
			}
			else
			{
				UseRightctrlForDBCSEntryToolStripMenuItem.Checked = false;
				UseRightControl = true;
			}
		}

		private void MaximiseMinimiseTextEditorToolStripMenuItem_Click(object sender, EventArgs e)
		{
			ResetFullScreenCheckmarks(eWindowStyle.Maximised);
			if (FullScreenEditorToolStripMenu.Checked)
			{
				NormalEditorWindow();
				FullScreenEditorToolStripMenu.Checked = false;
			}
			else
			{
				FullScreenEditor(eWindowStyle.Maximised);
				FullScreenEditorToolStripMenu.Checked = true;
			}
		}

		private void NormalEditorWindow()
		{
			SuspendLayout();
			try
			{
				try
				{
					base.AllowTransparency = false;
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					ProjectData.ClearProjectError();
				}
				ResetFullScreenCheckmarks(eWindowStyle.None);
				HideFullScreenMargins();
				BackColor = SystemColors.Control;
				MainMenu1.Visible = true;
				Panel2.Visible = true;
				TableChapterSceneSelect.Visible = true;
				StatusStrip1.Visible = true;
				base.FormBorderStyle = FormBorderStyle.Sizable;
				base.WindowState = FormWindowState.Normal;
				txtMain.Parent = TabContent;
				txtMain.Dock = DockStyle.Fill;
				txtMain.BringToFront();
				txtDesc.Parent = TableLayoutMainDetails;
				txtDesc.Dock = DockStyle.None;
				txtDesc.Dock = DockStyle.Fill;
				ctxThesLookup.Enabled = true;
				ctxDictLookup.Enabled = true;
				base.TopMost = false;
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			ResumeLayout();
			cDelay.DoEvents();
		}

		private void FullScreenEditor(eWindowStyle eStyle)
		{
			SuspendLayout();
			try
			{
				MainMenu1.Visible = false;
				TableChapterSceneSelect.Visible = false;
				Panel2.Visible = false;
				StatusStrip1.Visible = false;
				base.FormBorderStyle = FormBorderStyle.None;
				if (WithDescription)
				{
					txtDesc.Parent = this;
					txtDesc.Dock = DockStyle.Bottom;
					txtDesc.BringToFront();
				}
				txtMain.Parent = this;
				txtMain.Dock = DockStyle.Fill;
				switch (eStyle)
				{
				case eWindowStyle.MaximisedWithMargins:
					base.WindowState = FormWindowState.Maximized;
					MALeft.Parent = this;
					MALeft.Dock = DockStyle.Left;
					MALeft.Width = (int)Math.Round((double)base.Width / 4.0);
					MALeft.BringToFront();
					MALeft.ContextMenuStrip = ctxRC;
					MARight.Parent = this;
					MARight.Dock = DockStyle.Right;
					MARight.Width = (int)Math.Round((double)base.Width / 4.0);
					MARight.BringToFront();
					MARight.ContextMenuStrip = ctxRC;
					MATop.Parent = this;
					MATop.Dock = DockStyle.Top;
					MATop.Height = (int)Math.Round((double)base.Height / 15.0);
					MATop.BringToFront();
					MATop.ContextMenuStrip = ctxRC;
					MABottom.Parent = this;
					MABottom.Dock = DockStyle.Bottom;
					MABottom.Height = (int)Math.Round((double)base.Height / 15.0);
					MABottom.BringToFront();
					MABottom.ContextMenuStrip = ctxRC;
					SetMarginBackcolor();
					MALeft.Visible = true;
					MARight.Visible = true;
					MATop.Visible = true;
					MABottom.Visible = true;
					BackColor = SystemColors.Control;
					base.TopMost = true;
					break;
				case eWindowStyle.Maximised:
					base.WindowState = FormWindowState.Maximized;
					HideFullScreenMargins();
					base.TopMost = true;
					break;
				case eWindowStyle.Tiled:
					base.WindowState = FormWindowState.Normal;
					break;
				}
				ctxThesLookup.Enabled = false;
				ctxDictLookup.Enabled = false;
				txtMain.BringToFront();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			ResumeLayout();
			cDelay.DoEvents();
		}

		private void HideFontBarToolStripMenuItem1_Click(object sender, EventArgs e)
		{
			if (HideFontBarToolStripMenuItem1.Checked)
			{
				clsShared.cSettings.sSet("HideFontBar", false);
			}
			else
			{
				clsShared.cSettings.sSet("HideFontBar", true);
			}
			ReadFontBarSetting();
			SettingsChangedEvent?.Invoke(LocalScID);
		}

		private void FullScreenEditorWithMarginsToolStripMenuItem_Click(object sender, EventArgs e)
		{
			ResetFullScreenCheckmarks(eWindowStyle.MaximisedWithMargins);
			if (FullScreenEditorWithMarginsToolStripMenuItem.Checked)
			{
				NormalEditorWindow();
				FullScreenEditorWithMarginsToolStripMenuItem.Checked = false;
			}
			else
			{
				FullScreenEditor(eWindowStyle.MaximisedWithMargins);
				FullScreenEditorWithMarginsToolStripMenuItem.Checked = true;
			}
		}

		private void HideFullScreenMargins()
		{
			try
			{
				MATop.Visible = false;
				MABottom.Visible = false;
				MALeft.Visible = false;
				MARight.Visible = false;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		private void SetMarginBackcolor()
		{
			try
			{
				Color backColor = txtDesc.BackColor;
				MALeft.BackColor = backColor;
				MARight.BackColor = backColor;
				MATop.BackColor = backColor;
				MABottom.BackColor = backColor;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		private void txtCharDesc_TextChanged(object sender, EventArgs e)
		{
		}

		private void ManualToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				clsShared.cHelp.ShowHelp();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		private void tsbReadAloud_Click(object sender, EventArgs e)
		{
			try
			{
				if (Talking)
				{
					StopTalking();
				}
				else
				{
					StartTalking();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void StartTalking()
		{
			if (modSubs.SpeechAvailable() && !Talking)
			{
				try
				{
					if (SpeechEngine == null)
					{
						SpeechEngine = new clsTalker();
					}
					clsTalker obj = (clsTalker)SpeechEngine;
					string StringToAlter = (Operators.CompareString(txtMain.SelectedText, "", TextCompare: false) == 0) ? Strings.Mid(txtMain.Text, txtMain.SelectionStart + 1) : txtMain.SelectedText;
					clsShared.cHtml.StripBetweenTags(ref StringToAlter, "<TEX ", " /TEX>");
					clsShared.cHtml.StripBetweenTags(ref StringToAlter, "<tex ", " /tex>");
					clsShared.cHtml.StripBetweenTags(ref StringToAlter, "<HTM ", " /HTM>");
					clsShared.cHtml.StripBetweenTags(ref StringToAlter, "<htm ", " /htm>");
					clsShared.cHtml.StripBetweenTags(ref StringToAlter, "<RTF ", " /RTF>");
					clsShared.cHtml.StripBetweenTags(ref StringToAlter, "<rtf ", " /rtf>");
					clsShared.cHtml.StripBetweenTags(ref StringToAlter, "<rtf img", "/img>");
					clsShared.cHtml.StripBetweenTags(ref StringToAlter, "<rtf url", "/url>");
					obj.StoreTextFile(StringToAlter);
					obj.SpeakCompleted += TempSpch_SpeakCompleted;
					obj.Start();
					Talking = true;
					tsbReadAloud.Visible = false;
					tsbStopReading.Visible = true;
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction("Speech engine not initialised. Requires .Net Framework 3.0 or above.");
					ProjectData.ClearProjectError();
				}
			}
		}

		private void StopTalking()
		{
			if (modSubs.SpeechAvailable() && Talking)
			{
				try
				{
					((clsTalker)SpeechEngine)?.StopSpeaking();
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction("Speech engine not initialised. Requires .Net Framework 3.0 or above.");
					ProjectData.ClearProjectError();
				}
				tsbReadAloud.Visible = true;
				tsbStopReading.Visible = false;
				Talking = false;
			}
		}

		private void tsbStopReading_Click(object sender, EventArgs e)
		{
			StopTalking();
		}

		private void tsbSetupSpeech_Click(object sender, EventArgs e)
		{
			if (modSubs.SpeechAvailable())
			{
				try
				{
					frmConfig frmConfig = new frmConfig();
					frmConfig.ChangedVoice += TempSpch_ChangedVoice;
					frmConfig.ShowDialog();
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void TempSpch_ChangedVoice(string NewVoice)
		{
			if (modSubs.SpeechAvailable())
			{
				try
				{
					if (!Talking)
					{
						((clsTalker)SpeechEngine)?.SelectVoice(NewVoice);
					}
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction("Speech engine not initialised. Requires .Net Framework 3.0 or above.");
					ProjectData.ClearProjectError();
				}
			}
		}

		private void TempSpch_SpeakCompleted()
		{
			if (modSubs.SpeechAvailable())
			{
				tsbReadAloud.Visible = true;
				tsbStopReading.Visible = false;
				Talking = false;
			}
		}

		private void cmdSwitchDateMode1_Click(object sender, EventArgs e)
		{
			ShowSpecificDateFrame();
			clsShared.cSettings.sSet("DefaultToSpecificDate", true);
		}

		private void ShowDHMFrame()
		{
			fraSpecificDateTime.Left = fraDHM.Left;
			fraSpecificDateTime.Top = fraDHM.Top;
			fraDHM.Visible = true;
			fraSpecificDateTime.Visible = false;
		}

		private void cmdSwitchDateMode2_Click(object sender, EventArgs e)
		{
			ShowDHMFrame();
			clsShared.cSettings.sSet("DefaultToSpecificDate", false);
		}

		private void ShowSpecificDateFrame()
		{
			fraSpecificDateTime.Left = fraDHM.Left;
			fraSpecificDateTime.Top = fraDHM.Top;
			fraDHM.Visible = false;
			fraSpecificDateTime.Visible = true;
		}

		private void lblSpecificDate_Click(object sender, EventArgs e)
		{
			try
			{
				DateTime defaultDate = cProject.MRUSpecificDate;
				if (defaultDate.Year == 0)
				{
					defaultDate = DateAndTime.Now;
				}
				DateTime date = clsShared.cGetDate.GetDate("Date of scene", defaultDate);
				if (DateTime.Compare(date, DateTime.FromOADate(0.0)) != 0)
				{
					lblSpecificDate.Text = Conversions.ToString(date.Date);
					cProject.MRUSpecificDate = DateAndTime.DateValue(lblSpecificDate.Text);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void lblSpecificTime_Click(object sender, EventArgs e)
		{
			try
			{
				DateTime defaultTime = cProject.MRUSpecificTime;
				if ((defaultTime.Hour == 0) & (defaultTime.Minute == 0))
				{
					defaultTime = DateAndTime.Now;
				}
				DateTime time = clsShared.cGetTime.GetTime(defaultTime, WithSeconds: false);
				if (DateTime.Compare(time, DateTime.FromOADate(0.0)) != 0)
				{
					lblSpecificTime.Text = Strings.Format(time, "HH:mm");
					cProject.MRUSpecificTime = DateAndTime.TimeValue(lblSpecificTime.Text);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ClearImageToolStripMenuItem_Click(object sender, EventArgs e)
		{
			txtImageFile.Text = "";
			Image2.Image = null;
		}

		private void AllowTABInEditorWindowToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				if (AllowTABInEditorWindowToolStripMenuItem.Checked)
				{
					AllowTabsInEditor = false;
				}
				else
				{
					AllowTabsInEditor = true;
				}
				clsShared.cSettings.sSet("AllowTabsInEditor", AllowTabsInEditor);
				ReadAllowTabsSetting();
				SettingsChangedEvent?.Invoke(LocalScID);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ClearSelectedHighlightToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				string selectedRtf = txtMain.SelectedRtf;
				selectedRtf = Regex.Replace(selectedRtf, "\\\\highlight\\d+ ", "");
				selectedRtf = Regex.Replace(selectedRtf, "\\\\highlight\\d+", "");
				txtMain.SelectedRtf = selectedRtf;
				Dirty = true;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void SetHighlightColourToolStripMenuItem_Click(object sender, EventArgs e)
		{
			new frmHighlightColours().ShowDialog();
			FillHighlightMenu();
			SettingsChangedEvent?.Invoke(LocalScID);
		}

		private void HighlightClicked(object sender, EventArgs e)
		{
			try
			{
				Color selectionBackColor = Color.FromArgb(Conversions.ToInteger(((ToolStripMenuItem)sender).Tag));
				txtMain.SelectionBackColor = selectionBackColor;
				Dirty = true;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		private void ClearSelectedHighlightToolStripMenuItem1_Click(object sender, EventArgs e)
		{
			try
			{
				string selectedRtf = txtMain.SelectedRtf;
				selectedRtf = Regex.Replace(selectedRtf, "\\\\highlight\\d+ ", "");
				selectedRtf = Regex.Replace(selectedRtf, "\\\\highlight\\d+", "");
				txtMain.SelectedRtf = selectedRtf;
				Dirty = true;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void TimerFillFontCombo_Tick(object sender, EventArgs e)
		{
			TimerFillFontCombo.Stop();
			if (!EditorDone)
			{
				FillFontCombo();
			}
		}

		private void mnuSpellMenu_Click(object sender, EventArgs e)
		{
		}

		private void mnuSpellMenu_DropDownOpening(object sender, EventArgs e)
		{
			if (modSJ.cSpell.DictAvailable)
			{
				mnuClear.Visible = true;
				mnuSpellingOn.Visible = true;
				mnuCheckNow.Visible = true;
			}
			else
			{
				mnuSpellingOn.Visible = false;
				mnuClear.Visible = false;
				mnuCheckNow.Visible = false;
				mnuInstallDictionary.Visible = true;
			}
		}

		private void mnuEdit_DropDownOpening(object sender, EventArgs e)
		{
			if (txtMain.CanUndo)
			{
				UndoCtrlZToolStripMenuItem.Enabled = true;
			}
			else
			{
				UndoCtrlZToolStripMenuItem.Enabled = false;
			}
			if (txtMain.CanRedo)
			{
				RedoCtrlYToolStripMenuItem.Enabled = true;
			}
			else
			{
				RedoCtrlYToolStripMenuItem.Enabled = true;
			}
		}

		private void ShowFind(bool HideReplace)
		{
			ResetFind(HideReplace);
			try
			{
				Find.WindowState = FormWindowState.Normal;
				Find.Show();
				Find.BringToFront();
				Find.cmbFind.Focus();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				try
				{
					Find = new frmFind(ref clsShared.cLog);
					ResetFind(HideReplace);
					Find.Show();
					Find.BringToFront();
					Find.cmbFind.Focus();
				}
				catch (Exception ex3)
				{
					ProjectData.SetProjectError(ex3);
					Exception ex4 = ex3;
					clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
				ProjectData.ClearProjectError();
			}
		}

		private void ListLocUsed_DoubleClick(object sender, EventArgs e)
		{
			EditSelectedLocation(ListLocUsed);
		}

		private void ListLocUsed_DragDrop(object sender, DragEventArgs e)
		{
			ListView aList = ListLocUsed;
			AddToUsedList(ref aList, e, IsChar: false, IsLoc: true, IsItem: false);
			ListLocUsed = aList;
		}

		private void ListLocUsed_DragOver(object sender, DragEventArgs e)
		{
			if (!DraggingLocation)
			{
				e.Effect = DragDropEffects.None;
			}
			else if (e.Data.GetDataPresent(DataFormats.StringFormat, autoConvert: false))
			{
				e.Effect = DragDropEffects.Copy;
			}
		}

		private void ListLocUsed_ItemDrag(object sender, ItemDragEventArgs e)
		{
			if (e.Button == MouseButtons.Left)
			{
				try
				{
					ListView SourceList = ListLocUsed;
					DragStart(ref SourceList, ref DraggingLocation, DragDropEffects.Move);
					ListLocUsed = SourceList;
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void ListLocAll_DoubleClick(object sender, EventArgs e)
		{
			EditSelectedLocation(ListLocAll);
		}

		private void ListLocAll_DragDrop(object sender, DragEventArgs e)
		{
			RemoveFromScene(e, IsChar: false, IsLoc: true, IsItem: false);
		}

		private void ListLocAll_DragOver(object sender, DragEventArgs e)
		{
			if (!DraggingLocation)
			{
				e.Effect = DragDropEffects.None;
			}
			else if (e.Data.GetDataPresent(DataFormats.StringFormat, autoConvert: false))
			{
				e.Effect = DragDropEffects.Move;
			}
		}

		private void ListLocAll_ItemDrag(object sender, ItemDragEventArgs e)
		{
			if (e.Button == MouseButtons.Left)
			{
				try
				{
					ListView SourceList = ListLocAll;
					DragStart(ref SourceList, ref DraggingLocation, DragDropEffects.Copy);
					ListLocAll = SourceList;
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void listItemsUsed_DoubleClick(object sender, EventArgs e)
		{
			EditSelectedItem(listItemsUsed);
		}

		private void listItemsUsed_DragDrop(object sender, DragEventArgs e)
		{
			ListView aList = listItemsUsed;
			AddToUsedList(ref aList, e, IsChar: false, IsLoc: false, IsItem: true);
			listItemsUsed = aList;
		}

		private void AddToUsedList(ref ListView aList, DragEventArgs e, bool IsChar, bool IsLoc, bool IsItem)
		{
			try
			{
				if (e.Effect == DragDropEffects.Copy)
				{
					e.Effect = DragDropEffects.None;
					string[] array = (string[])e.Data.GetData(DataFormats.StringFormat);
					clsScene clsScene = cProject.get_SceneByID(LocalScID);
					int num = array.Length - 1;
					for (int i = 0; i <= num; i++)
					{
						int iD = Conversions.ToInteger(array[i]);
						if (IsChar)
						{
							clsScene.AddCharByID(iD);
							FindVPInCombo();
						}
						else if (IsLoc)
						{
							clsScene.AddLocationByID(iD);
						}
						else if (IsItem)
						{
							clsScene.AddItemByID(iD);
						}
					}
					clsScene.Save();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void RemoveFromScene(DragEventArgs e, bool IsChar, bool IsLoc, bool IsItem)
		{
			try
			{
				if (e.Effect == DragDropEffects.Move)
				{
					string[] array = (string[])e.Data.GetData(DataFormats.StringFormat);
					clsScene clsScene = cProject.get_SceneByID(LocalScID);
					int num = array.Length - 1;
					for (int i = 0; i <= num; i++)
					{
						int iD = Conversions.ToInteger(array[i]);
						if (IsChar)
						{
							clsScene.RemoveCharByID(iD);
							FindVPInCombo();
						}
						else if (IsItem)
						{
							clsScene.RemoveItemByID(iD);
						}
						else if (IsLoc)
						{
							clsScene.RemoveLocationByID(iD);
						}
					}
					clsScene.Save();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void listItemsUsed_DragOver(object sender, DragEventArgs e)
		{
			if (!DraggingItem)
			{
				e.Effect = DragDropEffects.None;
			}
			else if (e.Data.GetDataPresent(DataFormats.StringFormat, autoConvert: false))
			{
				e.Effect = DragDropEffects.Copy;
			}
		}

		private void listItemsUsed_ItemDrag(object sender, ItemDragEventArgs e)
		{
			if (e.Button == MouseButtons.Left)
			{
				try
				{
					ListView SourceList = listItemsUsed;
					DragStart(ref SourceList, ref DraggingItem, DragDropEffects.Move);
					listItemsUsed = SourceList;
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void ListItemsAll_DoubleClick(object sender, EventArgs e)
		{
			EditSelectedItem(ListItemsAll);
		}

		private void ListItemsAll_DragDrop(object sender, DragEventArgs e)
		{
			RemoveFromScene(e, IsChar: false, IsLoc: false, IsItem: true);
		}

		private void ListItemsAll_DragOver(object sender, DragEventArgs e)
		{
			if (!DraggingItem)
			{
				e.Effect = DragDropEffects.None;
			}
			else if (e.Data.GetDataPresent(DataFormats.StringFormat, autoConvert: false))
			{
				e.Effect = DragDropEffects.Move;
			}
		}

		private void ListItemsAll_ItemDrag(object sender, ItemDragEventArgs e)
		{
			if (e.Button == MouseButtons.Left)
			{
				try
				{
					ListView SourceList = ListItemsAll;
					DragStart(ref SourceList, ref DraggingItem, DragDropEffects.Copy);
					ListItemsAll = SourceList;
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void txtMain_LinkClicked(object sender, LinkClickedEventArgs e)
		{
			if (FullScreenEditorWithMarginsToolStripMenuItem.Checked | FullScreenEditorToolStripMenu.Checked)
			{
				base.TopMost = false;
			}
			clsShared.cWWW.WebSiteVisit(e.LinkText);
		}

		private void StatusRatingsToolStripMenuItem_Click(object sender, EventArgs e)
		{
			clsShared.cLang.TransMsgBox("You can rate four aspects of this scene from 1 (low) to 10 (high). You can also set the scene's status. (Rename these variables on the Project Settings form.)");
		}

		private void ToolStripButton1_Click(object sender, EventArgs e)
		{
			SuppressSnapshot = true;
			MarkSelectionStrikethrough();
			SuppressSnapshot = false;
		}

		private void mnuMarkKnownLocations_Click(object sender, EventArgs e)
		{
			if (mnuMarkKnownLocations.Checked)
			{
				mnuMarkKnownLocations.Checked = false;
				clsShared.cSettings.sSet("HighlightLocations", false);
				ResetCharLocItemsAsNeeded();
			}
			else
			{
				mnuMarkKnownLocations.Checked = true;
				clsShared.cSettings.sSet("HighlightLocations", true);
				HighlightCharLocItemsIfNeeded();
			}
			SettingsChangedEvent?.Invoke(LocalScID);
		}

		private void mnuMarkKnownItems_Click(object sender, EventArgs e)
		{
			if (mnuMarkKnownItems.Checked)
			{
				mnuMarkKnownItems.Checked = false;
				clsShared.cSettings.sSet("HighlightItems", false);
				ResetCharLocItemsAsNeeded();
			}
			else
			{
				mnuMarkKnownItems.Checked = true;
				clsShared.cSettings.sSet("HighlightItems", true);
				HighlightCharLocItemsIfNeeded();
			}
			SettingsChangedEvent?.Invoke(LocalScID);
		}

		public void mnuChar_Click(object eventSender, EventArgs eventArgs)
		{
			if (mnuMarkKnownChar.Checked)
			{
				mnuMarkKnownChar.Checked = false;
				clsShared.cSettings.sSet("HighlightChar", false);
				ResetCharLocItemsAsNeeded();
			}
			else
			{
				mnuMarkKnownChar.Checked = true;
				clsShared.cSettings.sSet("HighlightChar", true);
				HighlightCharLocItemsIfNeeded();
			}
			SettingsChangedEvent?.Invoke(LocalScID);
		}

		private void HighlightCharLocItemsIfNeeded()
		{
			RichTextBox RTF = new RichTextBox();
			try
			{
				RTF.Rtf = txtMain.Rtf;
				RTF.SuspendLayout();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				if (mnuMarkKnownChar.Checked)
				{
					HighlightCharacters(ref RTF, CharColour);
				}
				if (mnuMarkKnownLocations.Checked)
				{
					HighlightLocations(ref RTF, LocationsColour);
				}
				if (mnuMarkKnownItems.Checked)
				{
					HighlightItems(ref RTF, ItemsColour);
				}
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				RTF.Select(0, 0);
				RTF.ResumeLayout();
				CopyTextBoxToMain(ref RTF);
			}
			catch (Exception ex5)
			{
				ProjectData.SetProjectError(ex5);
				Exception ex6 = ex5;
				clsShared.cLog.AddAction(ex6, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ResetCharLocItemsAsNeeded()
		{
			RichTextBox RTF = new RichTextBox();
			try
			{
				RTF.Rtf = txtMain.Rtf;
				RTF.SuspendLayout();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
			try
			{
				if (!mnuMarkKnownChar.Checked)
				{
					HighlightCharacters(ref RTF, FGColour);
				}
				if (!mnuMarkKnownLocations.Checked)
				{
					HighlightLocations(ref RTF, FGColour);
				}
				if (!mnuMarkKnownItems.Checked)
				{
					HighlightItems(ref RTF, FGColour);
				}
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				RTF.Select(0, 0);
				RTF.ResumeLayout();
				CopyTextBoxToMain(ref RTF);
			}
			catch (Exception ex5)
			{
				ProjectData.SetProjectError(ex5);
				Exception ex6 = ex5;
				clsShared.cLog.AddAction(ex6, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ResetFind(bool HideReplace)
		{
			try
			{
				Find.ResetControls(HideReplace, HideReplace);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				Find = new frmFind(ref clsShared.cLog);
				ProjectData.ClearProjectError();
			}
		}

		private void FindPrev()
		{
			try
			{
				if (Operators.CompareString(CurrentSearchString, "", TextCompare: false) == 0)
				{
					ShowFind(HideReplace: true);
				}
				else
				{
					FindPrev(CurrentSearchString, CurrentSensitive);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		private void ctxRC_Closed(object sender, ToolStripDropDownClosedEventArgs e)
		{
			if (FullScreenEditorWithMarginsToolStripMenuItem.Checked | FullScreenEditorToolStripMenu.Checked)
			{
				base.TopMost = true;
			}
		}

		private void ctxRC_Opening(object sender, CancelEventArgs e)
		{
			if (FullScreenEditorWithMarginsToolStripMenuItem.Checked | FullScreenEditorToolStripMenu.Checked)
			{
				base.TopMost = false;
			}
		}

		private void KeyboardShortcutsToolStripMenuItem_Click(object sender, EventArgs e)
		{
			Interaction.MsgBox("Ctrl-a - Select all, Ctrl-c - Copy, Ctrl-x - Cut, Ctrl-v - Paste\r\nCtrl-z - Undo (To last undo point, not last change)\r\nCtrl-s - Save, Ctrl-w - Close window\r\nCtrl-e - Center justify, Ctrl-r - Right justify, Ctrl-l - Left justify\r\nCtrl-f - Find, Ctrl-h - Find & replace, F3 - Find Next\r\nCtrl-b - Bold, Ctrl-i - Italics, Ctrl-u - Underline\r\nCtrl-1 - Single Spaced, Ctrl-2 - Double Spaced, Ctrl-5 - 1.5 Spaced\r\nF11 - toggle full screen editor");
		}

		private void PrintProgress(string ProgressString)
		{
			tssPrintStatus.Text = ProgressString;
		}

		private void cmbFont_Click(object sender, EventArgs e)
		{
		}

		private void cmbFontSize_Click(object sender, EventArgs e)
		{
		}

		private void ClickableHyperlinksToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (ClickableHyperlinksToolStripMenuItem.Checked)
			{
				ClickableHyperlinksToolStripMenuItem.Checked = false;
				clsShared.cSettings.sSet("ClickableHyperlinks", false);
				ResetClickableHyperlinks();
			}
			else
			{
				ClickableHyperlinksToolStripMenuItem.Checked = true;
				clsShared.cSettings.sSet("ClickableHyperlinks", true);
				ResetClickableHyperlinks();
			}
			SettingsChangedEvent?.Invoke(LocalScID);
		}

		private void ResetClickableHyperlinks()
		{
			try
			{
				txtMain.DetectUrls = clsShared.cSettings.sGet("ClickableHyperlinks", DefaultIfUnknown: true);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void InsertLinkToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				string defaultPath = clsShared.cSettings.sGet("FileBrowsePath", MyProject.Computer.FileSystem.SpecialDirectories.MyDocuments);
				string text = clsShared.cFileSel.AskForFilename("Select a file", defaultPath, "*.*");
				if (Operators.CompareString(text, "", TextCompare: false) != 0)
				{
					clsShared.cSettings.sSet("FileBrowsePath", clsShared.cFile.PathOnly(text));
					text = Strings.Replace(text, "\\", "/");
					text = "File:///" + text;
					text = HttpUtility.UrlPathEncode(text);
					txtMain.SelectedText = text;
					txtMain.Refresh();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void DefaultsToolStripMenuItem_Click(object sender, EventArgs e)
		{
			CharColour = DefaultCharColour;
			LocationsColour = DefaultLocationsColour;
			ItemsColour = DefaultItemsColour;
			SpellCheck(Force: false);
		}

		private void tsmDefaultSpellColour_Click(object sender, EventArgs e)
		{
			Spellingcolour = DefaultSpellingcolour;
			SpellCheck(Force: false);
		}

		private void SaveColours()
		{
			try
			{
				clsShared.cSettings.sSet("EditorCharColour", CharColour);
				clsShared.cSettings.sSet("EditorLocationsColour", LocationsColour);
				clsShared.cSettings.sSet("EditorItemsColour", ItemsColour);
				clsShared.cSettings.sSet("EditorSpellingColour", Spellingcolour);
				SettingsChangedEvent?.Invoke(LocalScID);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void RefreshSettings()
		{
			FillHighlightMenu();
			try
			{
				CapitaliseFirstLetterOfSentenceToolStripMenuItem.Checked = clsShared.cSettings.sGet("CapitaliseFirst", DefaultIfUnknown: false);
				CapitaliseFirst = CapitaliseFirstLetterOfSentenceToolStripMenuItem.Checked;
				AlwaysCapitaliseIToolStripMenuItem.Checked = clsShared.cSettings.sGet("CapitaliseI", DefaultIfUnknown: false);
				CapitaliseI = AlwaysCapitaliseIToolStripMenuItem.Checked;
				mnuSpellingOn.Checked = clsShared.cSettings.sGet("AutoSpell", DefaultIfUnknown: false);
				mnuMarkKnownChar.Checked = clsShared.cSettings.sGet("HighlightChar", DefaultIfUnknown: false);
				mnuMarkKnownLocations.Checked = clsShared.cSettings.sGet("HighlightLocations", DefaultIfUnknown: false);
				mnuMarkKnownItems.Checked = clsShared.cSettings.sGet("HighlightItems", DefaultIfUnknown: false);
				ClickableHyperlinksToolStripMenuItem.Checked = clsShared.cSettings.sGet("ClickableHyperlinks", DefaultIfUnknown: true);
				BGColour = clsShared.cSettings.sGet("EditorBG5", SystemColors.Window);
				FGColour = clsShared.cSettings.sGet("EditorFG5", SystemColors.WindowText);
				Spellingcolour = clsShared.cSettings.sGet("EditorSpellingColour", DefaultSpellingcolour);
				CharColour = clsShared.cSettings.sGet("EditorCharColour", DefaultCharColour);
				LocationsColour = clsShared.cSettings.sGet("EditorLocationsColour", DefaultLocationsColour);
				ItemsColour = clsShared.cSettings.sGet("EditorItemsColour", DefaultItemsColour);
				CurrentIndent = (int)Math.Round(clsShared.cSettings.sGet("EditorIndent", 12));
				TypewriterSounds = clsShared.cSettings.sGet("TypewriterSounds", DefaultIfUnknown: false);
				TypewriterSoundsToolStripMenuItem.Checked = TypewriterSounds;
				SetControlKeyUsage();
				SetForeColour(FGColour);
				SetBackcolour();
				SpellCheck(Force: false);
				RichTextBox RTFBox = txtMain;
				SetIndent(ref RTFBox);
				txtMain = RTFBox;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void TypewriterSoundsToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (TypewriterSoundsToolStripMenuItem.Checked)
			{
				TypewriterSounds = false;
			}
			else
			{
				TypewriterSounds = true;
			}
			clsShared.cSettings.sSet("TypewriterSounds", TypewriterSounds);
			TypewriterSoundsToolStripMenuItem.Checked = TypewriterSounds;
		}

		private void optReaction_CheckedChanged(object sender, EventArgs e)
		{
			SetGoalsLabels();
		}

		private void optAction_CheckedChanged(object sender, EventArgs e)
		{
			SetGoalsLabels();
		}

		private void TiledEditorWindowsToolStripMenuItem_Click(object sender, EventArgs e)
		{
			ResetFullScreenCheckmarks(eWindowStyle.Tiled);
			if (TiledEditorWindowsToolStripMenuItem.Checked)
			{
				TriggerUntiledWindowsEvent?.Invoke();
				TiledEditorWindowsToolStripMenuItem.Checked = false;
			}
			else
			{
				TriggerTiledWindowsEvent?.Invoke();
				TiledEditorWindowsToolStripMenuItem.Checked = true;
			}
		}

		private void ResetFullScreenCheckmarks(eWindowStyle eStyle)
		{
			if (eStyle != eWindowStyle.Maximised)
			{
				FullScreenEditorToolStripMenu.Checked = false;
			}
			if (eStyle != eWindowStyle.MaximisedWithMargins)
			{
				FullScreenEditorWithMarginsToolStripMenuItem.Checked = false;
			}
			if (eStyle != eWindowStyle.Tiled)
			{
				TiledEditorWindowsToolStripMenuItem.Checked = false;
			}
		}

		public void TileWindow(int X, int Y, int Width, int Height)
		{
			TiledEditorWindowsToolStripMenuItem.Checked = true;
			FullScreenEditor(eWindowStyle.Tiled);
			base.Width = Width;
			base.Height = Height;
			base.Left = X;
			base.Top = Y;
		}

		public void UntileWindow()
		{
			NormalEditorWindow();
			clsSettings cSettings = clsShared.cSettings;
			Form Form = this;
			cSettings.ReadWindowSettings("Editor", ref Form);
		}

		private void SetUnusedColours()
		{
			txtTitle.BackColor = SystemColors.GradientActiveCaption;
			txtDesc.BackColor = SystemColors.GradientActiveCaption;
			lblUnusedIndicator.ForeColor = Color.Red;
		}

		private void ResetUnusedColours()
		{
			txtTitle.BackColor = SystemColors.Window;
			txtDesc.BackColor = SystemColors.Window;
		}

		private void AddSelectionAsNewCharacterToolStripMenuItem_Click(object sender, EventArgs e)
		{
			string selectedText = txtMain.SelectedText;
			if (Operators.CompareString(selectedText.Trim(), "", TextCompare: false) != 0 && Interaction.MsgBox("This will create a new character called '" + selectedText.Trim() + "'. Are you sure?", MsgBoxStyle.YesNo | MsgBoxStyle.Question) == MsgBoxResult.Yes)
			{
				clsCharacter cChr = new clsCharacter();
				cChr.Title = selectedText.Trim();
				cProject.AddChar(ref cChr);
				cProject.QuickSave();
			}
		}

		private void CreateItemFromSelectionToolStripMenuItem_Click(object sender, EventArgs e)
		{
			string selectedText = txtMain.SelectedText;
			if (Operators.CompareString(selectedText.Trim(), "", TextCompare: false) != 0 && Interaction.MsgBox("This will create a new item called '" + selectedText.Trim() + "'. Are you sure?", MsgBoxStyle.YesNo | MsgBoxStyle.Question) == MsgBoxResult.Yes)
			{
				clsItem Item = new clsItem();
				Item.Title = selectedText.Trim();
				cProject.AddItem(ref Item);
				cProject.QuickSave();
			}
		}

		private void CreateLocationFromSelectionToolStripMenuItem_Click(object sender, EventArgs e)
		{
			string selectedText = txtMain.SelectedText;
			if (Operators.CompareString(selectedText.Trim(), "", TextCompare: false) != 0 && Interaction.MsgBox("This will create a new location called '" + selectedText.Trim() + "'. Are you sure?", MsgBoxStyle.YesNo | MsgBoxStyle.Question) == MsgBoxResult.Yes)
			{
				clsLocation Location = new clsLocation();
				Location.Title = selectedText.Trim();
				cProject.AddLocation(ref Location);
				cProject.QuickSave();
			}
		}

		private void tssSceneWordCount_Click(object sender, EventArgs e)
		{
		}

		private void UndoCtrlZToolStripMenuItem_Click(object sender, EventArgs e)
		{
			Undo();
		}

		private void RedoCtrlYToolStripMenuItem_Click(object sender, EventArgs e)
		{
			Redo();
		}

		private void tsbCopy_Click(object sender, EventArgs e)
		{
			string selectedRtf = txtMain.SelectedRtf;
			StoreSnap(Force: true);
			Clipboard.Clear();
			Clipboard.SetText(selectedRtf);
		}

		private void tsbCut_Click(object sender, EventArgs e)
		{
			string selectedRtf = txtMain.SelectedRtf;
			StoreSnap(Force: true);
			try
			{
				txtMain.SelectedText = "";
				Clipboard.Clear();
				Clipboard.SetText(selectedRtf);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		private void tsbPaste_Click(object sender, EventArgs e)
		{
			if (Clipboard.ContainsText())
			{
				string text = Clipboard.GetText();
				StoreSnap(Force: true);
				try
				{
					if (text.Contains("\\rtf"))
					{
						txtMain.SelectedRtf = text;
					}
					else
					{
						txtMain.SelectedText = text;
					}
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					ProjectData.ClearProjectError();
				}
			}
		}

		private void tsbLeftAlign_Click(object sender, EventArgs e)
		{
			try
			{
				txtMain.SelectionAlignment = HorizontalAlignment.Left;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		private void tsbAlignRight_Click(object sender, EventArgs e)
		{
			try
			{
				txtMain.SelectionAlignment = HorizontalAlignment.Right;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		private void tsbAlignCentre_Click(object sender, EventArgs e)
		{
			try
			{
				txtMain.SelectionAlignment = HorizontalAlignment.Center;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		private void tsmAddListItem_Click(object sender, EventArgs e)
		{
			ListView listView = modSubs.WhichListClicked(RuntimeHelpers.GetObjectValue(sender));
			if (listView.Equals(ListCharAll) | listView.Equals(ListCharUsed))
			{
				modEditChar.AddNewChar(ref cProject);
			}
			else if (listView.Equals(ListLocAll) | listView.Equals(ListLocUsed))
			{
				modEditLocation.AddNewLocation(ref cProject);
			}
			else if (listView.Equals(ListItemsAll) | listView.Equals(listItemsUsed))
			{
				modEditItem.AddNewItem(ref cProject);
			}
		}

		private void cmdClear_Click(object sender, EventArgs e)
		{
			txtImageFile.Text = "";
			Image2.Image = null;
		}

		private void TimerSpeed_Tick(object sender, EventArgs e)
		{
			if (DateAndTime.Now.Subtract(LastKeypress).TotalSeconds > 5.0)
			{
				ResetSpeed();
			}
			else
			{
				WPSSeconds++;
			}
			ShowSpeed();
		}

		private void ResetSpeed()
		{
			try
			{
				tssSpeed.Text = "--";
				WPSWordsTyped = 0;
				WPSSeconds = 0;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		private void ShowSpeed()
		{
			string text = "--";
			if (WPSSeconds > 5 && WPSWordsTyped > 4)
			{
				int num = (int)Math.Round((double)WPSWordsTyped / ((double)WPSSeconds / 60.0));
				if (num > WPSPeak)
				{
					WPSPeak = num;
				}
				text = Conversions.ToString(num) + " wpm (" + Conversions.ToString(WPSWordsTyped) + " words in " + Conversions.ToString(WPSSeconds) + " sec)";
				text = text + " [" + Conversions.ToString(WPSPeak) + " peak]";
			}
			tssSpeed.Text = text;
		}

		private void optConditions_CheckedChanged(object sender, EventArgs e)
		{
			if (optConditions.Checked)
			{
				PanelSpecificExportOpts.Visible = true;
			}
			else
			{
				PanelSpecificExportOpts.Visible = false;
			}
		}

		private void optAlways_CheckedChanged(object sender, EventArgs e)
		{
			if (optAlways.Checked)
			{
				PanelExportCondAll.Visible = true;
			}
			else
			{
				PanelExportCondAll.Visible = false;
			}
		}

		private void SpecialCodesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			Interaction.MsgBox("Use '<HTM ' and ' /HTM>' in your scenes to enclose raw html code.\r\nUse '<TEX ' and ' /TEX>' to enclose raw LaTeX code.\r\nUse '<RTF ' and ' /RTF>' to enclose RTF-only text.\r\nUse '<rtf img filename.png /rtf>' to include an image in RTF exports.\r\nUse '<RTFBRK>' to enforce a new page in RTF.\r\nUse <HTML> or <TEX> at the beginning of a scene to export the entire scene as raw code.\r\nUse -- (two minus symbols) to represent an m-dash. This will avoid a bug in the Microsoft Rich Text control.");
		}

		private void TabCharacters_Click(object sender, EventArgs e)
		{
		}

		private void tssClearSelectedFormatting_Click(object sender, EventArgs e)
		{
			SuppressSnapshot = true;
			ClearSelectionFormatting();
			SuppressSnapshot = false;
		}

		private void ViewInReverseOrderToolStripMenuItem_Click(object sender, EventArgs e)
		{
			StringBuilder stringBuilder = new StringBuilder();
			string[] array = Strings.Split(txtMain.Text, "\r\n");
			for (int i = 0; i < array.Length; i = checked(i + 1))
			{
				string[] array2 = Strings.Split(array[i]);
				for (int j = array2.Length - 1; j >= 0; j += -1)
				{
					stringBuilder.Append(array2[j] + " ");
				}
			}
			string tempFileName = MyProject.Computer.FileSystem.GetTempFileName();
			tempFileName = clsShared.cFile.FileWithoutExt(tempFileName) + ".txt";
			clsShared.cFile.WriteTextFile(tempFileName, stringBuilder.ToString(), UseSystemEncoding: true);
			clsShared.cFile.RunFile(tempFileName);
		}

		private void chkWhenRTF_CheckedChanged(object sender, EventArgs e)
		{
		}

		private void CapitaliseFirstLetterOfSentenceToolStripMenuItem_Click(object sender, EventArgs e)
		{
			CapitaliseFirstLetterOfSentenceToolStripMenuItem.Checked = !CapitaliseFirstLetterOfSentenceToolStripMenuItem.Checked;
			clsShared.cSettings.sSet("CapitaliseFirst", CapitaliseFirstLetterOfSentenceToolStripMenuItem.Checked);
			CapitaliseFirst = clsShared.cSettings.sGet("CapitaliseFirst", DefaultIfUnknown: true);
		}

		private void AlwaysCapitaliseIToolStripMenuItem_Click(object sender, EventArgs e)
		{
			AlwaysCapitaliseIToolStripMenuItem.Checked = !AlwaysCapitaliseIToolStripMenuItem.Checked;
			clsShared.cSettings.sSet("CapitaliseI", AlwaysCapitaliseIToolStripMenuItem.Checked);
			CapitaliseI = clsShared.cSettings.sGet("CapitaliseI", DefaultIfUnknown: true);
		}

		private void TabDetails_Click(object sender, EventArgs e)
		{
		}

		private void TableLayoutMainDetails_Paint(object sender, PaintEventArgs e)
		{
		}

		private void cmdComment_Click(object sender, EventArgs e)
		{
			SuppressSnapshot = true;
			MarkSelectionComment();
			SuppressSnapshot = false;
		}
	}
}
